Kaydet (Commit) 3f76b7e6 authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Fix unpackSequence() to use _nameOp() rather than LOAD_FAST

üst 660cc77a
......@@ -1117,7 +1117,7 @@ class AbstractFunctionCode:
if type(elt) == types.TupleType:
self.unpackSequence(elt)
else:
self.emit('STORE_FAST', elt)
self._nameOp('STORE', elt)
unpackTuple = unpackSequence
......@@ -1153,6 +1153,7 @@ class AbstractClassCode:
self.setDocstring(klass.doc)
def _nameOp(self, prefix, name):
# Class namespaces are always unoptimized
self.emit(prefix + '_NAME', name)
def finish(self):
......
......@@ -1117,7 +1117,7 @@ class AbstractFunctionCode:
if type(elt) == types.TupleType:
self.unpackSequence(elt)
else:
self.emit('STORE_FAST', elt)
self._nameOp('STORE', elt)
unpackTuple = unpackSequence
......@@ -1153,6 +1153,7 @@ class AbstractClassCode:
self.setDocstring(klass.doc)
def _nameOp(self, prefix, name):
# Class namespaces are always unoptimized
self.emit(prefix + '_NAME', name)
def finish(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment