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/pyassem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/compiler/pyassem.py') diff --git a/Lib/compiler/pyassem.py b/Lib/compiler/pyassem.py index 22a19c7534..5932ffe6d0 100644 --- a/Lib/compiler/pyassem.py +++ b/Lib/compiler/pyassem.py @@ -771,7 +771,7 @@ class StackDepthTracker: 'COMPARE_OP': -1, 'STORE_FAST': -1, 'IMPORT_STAR': -1, - 'IMPORT_NAME': 0, + 'IMPORT_NAME': -1, 'IMPORT_FROM': 1, 'LOAD_ATTR': 0, # unlike other loads # close enough... -- cgit v1.2.1