summaryrefslogtreecommitdiffstats
path: root/Tools/compiler
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-04-12 06:49:00 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-04-12 06:49:00 (GMT)
commit660cc77abb561233c30f375310cec67211e4bacb (patch)
tree7aa4c84d1d925ef9033652be58c0faaf12004f9c /Tools/compiler
parent364f9b9e2f798e4d28ed21122faffb030a6ccac5 (diff)
downloadcpython-660cc77abb561233c30f375310cec67211e4bacb.zip
cpython-660cc77abb561233c30f375310cec67211e4bacb.tar.gz
cpython-660cc77abb561233c30f375310cec67211e4bacb.tar.bz2
Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAME
Diffstat (limited to 'Tools/compiler')
-rw-r--r--Tools/compiler/compiler/pycodegen.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/compiler/compiler/pycodegen.py b/Tools/compiler/compiler/pycodegen.py
index 2d4564a..444b065 100644
--- a/Tools/compiler/compiler/pycodegen.py
+++ b/Tools/compiler/compiler/pycodegen.py
@@ -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')