summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/consts.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-08-30 20:25:55 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-08-30 20:25:55 (GMT)
commit71ebc3359bb1a5106ba3c282746817d5d44e735b (patch)
tree545b890ab51c541d5043172fc45d4ba2a8ce7844 /Lib/compiler/consts.py
parent017cb2c7d85fa4a07365a9a205aca21bc29d01a8 (diff)
downloadcpython-71ebc3359bb1a5106ba3c282746817d5d44e735b.zip
cpython-71ebc3359bb1a5106ba3c282746817d5d44e735b.tar.gz
cpython-71ebc3359bb1a5106ba3c282746817d5d44e735b.tar.bz2
Fix _convert_NAME() so that it doesn't store locals for class bodies.
Fix list comp code generation -- emit GET_ITER instead of Const(0) after the list. Add CO_GENERATOR flag to generators. Get CO_xxx flags from the new module
Diffstat (limited to 'Lib/compiler/consts.py')
-rw-r--r--Lib/compiler/consts.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/compiler/consts.py b/Lib/compiler/consts.py
index ae3d18d..c4a4868 100644
--- a/Lib/compiler/consts.py
+++ b/Lib/compiler/consts.py
@@ -1,6 +1,5 @@
-# code flags
-CO_VARARGS = 1
-CO_VARKEYWORDS = 2
+from new import * # import all the CO_xxx flags
+del classobj, code, function, instance, instancemethod, module
# operation flags
OP_ASSIGN = 'OP_ASSIGN'