summaryrefslogtreecommitdiffstats
path: root/Tools/compiler
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-09-14 22:44:35 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-09-14 22:44:35 (GMT)
commit9ee78f7d61fdce7bd3e712346460bdbc026efc23 (patch)
tree2fb4f1e6b364b2bfb409c687004d43e8b4340a60 /Tools/compiler
parentfff252d20d634a3c86f06ef8585c3111c1d50091 (diff)
downloadcpython-9ee78f7d61fdce7bd3e712346460bdbc026efc23.zip
cpython-9ee78f7d61fdce7bd3e712346460bdbc026efc23.tar.gz
cpython-9ee78f7d61fdce7bd3e712346460bdbc026efc23.tar.bz2
the new new doesn't define CO_xxx as the old new did
Diffstat (limited to 'Tools/compiler')
-rw-r--r--Tools/compiler/compiler/consts.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Tools/compiler/compiler/consts.py b/Tools/compiler/compiler/consts.py
index c4a4868..20f8cf2 100644
--- a/Tools/compiler/compiler/consts.py
+++ b/Tools/compiler/compiler/consts.py
@@ -1,4 +1,3 @@
-from new import * # import all the CO_xxx flags
del classobj, code, function, instance, instancemethod, module
# operation flags
@@ -11,3 +10,12 @@ SC_GLOBAL = 2
SC_FREE = 3
SC_CELL = 4
SC_UNKNOWN = 5
+
+CO_OPTIMIZED = 0x0001
+CO_NEWLOCALS = 0x0002
+CO_VARARGS = 0x0004
+CO_VARKEYWORDS = 0x0008
+CO_NESTED = 0x0010
+CO_GENERATOR = 0x0020
+CO_GENERATOR_ALLOWED = 0x1000
+CO_FUTURE_DIVISION = 0x2000