]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add support for absolute/relative imports and if/else expressions:
authorThomas Wouters <thomas@python.org>
Fri, 3 Mar 2006 18:16:20 +0000 (18:16 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 3 Mar 2006 18:16:20 +0000 (18:16 +0000)
commitfa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c
treea3081b1644348af2f32b643964a02c895c99111b
parent7e2ac2533eb7279ccff193f8cffe94abd1dfa83f
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/ast.py
Lib/compiler/consts.py
Lib/compiler/pyassem.py
Lib/compiler/pycodegen.py
Lib/compiler/transformer.py