Antoine Pitrou
e970dc757c
Issue #15212 : fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
...
Patch by Arfrever.
2012-07-02 00:01:22 +02:00
Neil Schemenauer
92c3b2190b
Issue #999042 : The Python compiler now handles explict global statements
...
correctly (should be assigned using STORE_GLOBAL opcode). This was done by
having the system table differentiate between explict and implicit globals.
2009-02-07 00:54:41 +00:00
Eric Smith
5d5c63f462
Fixed compiler module so __future__ print_function is compilable.
2008-03-19 02:11:30 +00:00
Neal Norwitz
eaed39f303
Hopefully this removes all vestiges of CO_GENERATOR_ALLOWED that can
...
be removed in 2.x.
2006-03-03 19:12:58 +00:00
Thomas Wouters
fa0cf4f3ae
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.
2006-03-03 18:16:20 +00:00
Jeremy Hylton
6a9cac68b6
del no longer necessary now that new module is gone
2001-09-14 22:54:48 +00:00
Jeremy Hylton
9ee78f7d61
the new new doesn't define CO_xxx as the old new did
2001-09-14 22:44:35 +00:00
Jeremy Hylton
71ebc3359b
Fix _convert_NAME() so that it doesn't store locals for class bodies.
...
Fix list comp code generation -- emit GET_ITER instead of Const(0)
after the list.
Add CO_GENERATOR flag to generators.
Get CO_xxx flags from the new module
2001-08-30 20:25:55 +00:00
Jeremy Hylton
53ee2a94c7
Define constants for types of scopes
2001-04-12 06:39:24 +00:00
Jeremy Hylton
aa9d2d6123
constants from transformer
2000-02-08 18:57:51 +00:00