diff options
author | Thomas Wouters <thomas@python.org> | 2006-03-03 18:16:20 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-03-03 18:16:20 (GMT) |
commit | fa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c (patch) | |
tree | a3081b1644348af2f32b643964a02c895c99111b /Lib/compiler/pyassem.py | |
parent | 7e2ac2533eb7279ccff193f8cffe94abd1dfa83f (diff) | |
download | cpython-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/pyassem.py')
-rw-r--r-- | Lib/compiler/pyassem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/pyassem.py b/Lib/compiler/pyassem.py index 22a19c7..5932ffe 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... |