mirror of
https://github.com/python/cpython.git
synced 2024-11-29 12:54:02 +08:00
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
Block a user