summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/consts.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to ↵Antoine Pitrou2012-07-011-1/+1
| | | | | | SC_GLOBAL_EXPLICIT). Patch by Arfrever.
* Issue #999042: The Python compiler now handles explict global statementsNeil Schemenauer2009-02-071-4/+5
| | | | | correctly (should be assigned using STORE_GLOBAL opcode). This was done by having the system table differentiate between explict and implicit globals.
* Fixed compiler module so __future__ print_function is compilable.Eric Smith2008-03-191-0/+1
|
* Hopefully this removes all vestiges of CO_GENERATOR_ALLOWED that canNeal Norwitz2006-03-031-1/+1
| | | | be removed in 2.x.
* Add support for absolute/relative imports and if/else expressions:Thomas Wouters2006-03-031-0/+2
| | | | | | | | | - 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.
* del no longer necessary now that new module is goneJeremy Hylton2001-09-141-2/+0
|
* the new new doesn't define CO_xxx as the old new didJeremy Hylton2001-09-141-1/+9
|
* Fix _convert_NAME() so that it doesn't store locals for class bodies.Jeremy Hylton2001-08-301-3/+2
| | | | | | | | | 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
* Define constants for types of scopesJeremy Hylton2001-04-121-0/+5
|
* constants from transformerJeremy Hylton2000-02-081-0/+9