cpython/Lib/compiler
Jeremy Hylton 1e99a77120 Various sundry changes for 2.2 compatibility
Remove the option to have nested scopes or old LGB scopes.  This has a
large impact on the code base, by removing the need for two variants
of each CodeGenerator.

Add a get_module() method to CodeGenerator objects, used to get the
future features for the current module.

Set CO_GENERATOR, CO_GENERATOR_ALLOWED, and CO_FUTURE_DIVISION flags
as appropriate.

Attempt to fix the value of nlocals in newCodeObject(), assuming that
nlocals is 0 if CO_NEWLOCALS is not defined.
2001-09-14 22:49:08 +00:00
..
__init__.py typo 2001-04-09 04:23:55 +00:00
ast.py the names attribute of Global is not a node 2001-09-14 22:40:36 +00:00
consts.py the new new doesn't define CO_xxx as the old new did 2001-09-14 22:44:35 +00:00
future.py Track removal of doc string from Module().nodes[0] 2001-08-18 00:07:46 +00:00
misc.py Add __getitem__() handler for use by visitContinue() 2001-08-29 22:26:35 +00:00
pyassem.py Various sundry changes for 2.2 compatibility 2001-09-14 22:49:08 +00:00
pycodegen.py Various sundry changes for 2.2 compatibility 2001-09-14 22:49:08 +00:00
symbols.py The object-being sliced in an assignment to a slice is referenced, not 2001-09-14 22:45:57 +00:00
transformer.py Make sure that atoms (Tuple, List, etc.) have lineno attributes 2001-08-29 20:56:30 +00:00
visitor.py Change default() to use getChildNodes() instead of getChildren() 2001-08-29 18:17:22 +00:00