Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAME
This commit is contained in:
parent
364f9b9e2f
commit
660cc77abb
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue