From fa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Fri, 3 Mar 2006 18:16:20 +0000 Subject: 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. --- Lib/compiler/consts.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/compiler/consts.py') diff --git a/Lib/compiler/consts.py b/Lib/compiler/consts.py index a6cf559d94..d7609824e7 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 -- cgit v1.2.1