Kaydet (Commit) 660cc77a authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAME

üst 364f9b9e
......@@ -1152,6 +1152,9 @@ class AbstractClassCode:
if klass.doc:
self.setDocstring(klass.doc)
def _nameOp(self, prefix, name):
self.emit(prefix + '_NAME', name)
def finish(self):
self.graph.startExitBlock()
self.emit('LOAD_LOCALS')
......
......@@ -1152,6 +1152,9 @@ class AbstractClassCode:
if klass.doc:
self.setDocstring(klass.doc)
def _nameOp(self, prefix, name):
self.emit(prefix + '_NAME', name)
def finish(self):
self.graph.startExitBlock()
self.emit('LOAD_LOCALS')
......
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