summaryrefslogtreecommitdiffstats
path: root/Tools/compiler/demo.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-09-14 22:49:08 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-09-14 22:49:08 (GMT)
commit1e99a77120d7bf3509eb283dde871b89ad7f6007 (patch)
treeb770bd191fa0f98e1e5be46cd3cff16cb63959fc /Tools/compiler/demo.py
parent652a22437a973dddef7f82d0cc8271d60da7de36 (diff)
downloadcpython-1e99a77120d7bf3509eb283dde871b89ad7f6007.zip
cpython-1e99a77120d7bf3509eb283dde871b89ad7f6007.tar.gz
cpython-1e99a77120d7bf3509eb283dde871b89ad7f6007.tar.bz2
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.
Diffstat (limited to 'Tools/compiler/demo.py')
0 files changed, 0 insertions, 0 deletions