summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/consts.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-03 18:16:20 (GMT)
committerThomas Wouters <thomas@python.org>2006-03-03 18:16:20 (GMT)
commitfa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c (patch)
treea3081b1644348af2f32b643964a02c895c99111b /Lib/compiler/consts.py
parent7e2ac2533eb7279ccff193f8cffe94abd1dfa83f (diff)
downloadcpython-fa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c.zip
cpython-fa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c.tar.gz
cpython-fa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c.tar.bz2
Add support for absolute/relative imports and if/else expressions:
- regenerate ast.py - add future flags for absolute-import and with-statement so they (hopefully) properly get set in code-object flags - try out if/else expressions in actual code for the hell of it. Seems to generate the same kind of bytecode as the normal compiler.
Diffstat (limited to 'Lib/compiler/consts.py')
-rw-r--r--Lib/compiler/consts.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/compiler/consts.py b/Lib/compiler/consts.py
index a6cf559..d760982 100644
--- a/Lib/compiler/consts.py
+++ b/Lib/compiler/consts.py
@@ -17,3 +17,5 @@ CO_NESTED = 0x0010
CO_GENERATOR = 0x0020
CO_GENERATOR_ALLOWED = 0x1000
CO_FUTURE_DIVISION = 0x2000
+CO_FUTURE_ABSIMPORT = 0x4000
+CO_FUTURE_WITH_STATEMENT = 0x8000