0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 17:47:13 +01:00
cpython/Include
Jeremy Hylton 29906eef3a Preliminary support for future nested scopes
compile.h: #define NESTED_SCOPES_DEFAULT 0 for Python 2.1
           __future__ feature name: "nested_scopes"

symtable.h: Add st_nested_scopes slot.  Define flags to track exec and
    import star.

Lib/test/test_scope.py: requires nested scopes

compile.c: Fiddle with error messages.

    Reverse the sense of ste_optimized flag on
    PySymtableEntryObjects.  If it is true, there is an optimization
    conflict.

    Modify get_ref_type to respect st_nested_scopes flags.

    Refactor symtable_load_symbols() into several smaller functions,
    which use struct symbol_info to share variables.  In new function
    symtable_update_flags(), raise an error or warning for import * or
    bare exec that conflicts with nested scopes.  Also, modify handle
    for free variables to respect st_nested_scopes flag.

    In symtable_init() assign st_nested_scopes flag to
    NESTED_SCOPES_DEFAULT (defined in compile.h).

    Add preliminary and often incorrect implementation of
    symtable_check_future().

    Add symtable_lookup() helper for future use.
2001-02-27 04:23:34 +00:00
..
abstract.h
bitset.h
bufferobject.h
cellobject.h
ceval.h
classobject.h
cobject.h
codecs.h
compile.h Preliminary support for future nested scopes 2001-02-27 04:23:34 +00:00
complexobject.h
config.h
cStringIO.h
dictobject.h
errcode.h
eval.h
fileobject.h
floatobject.h
frameobject.h
funcobject.h
graminit.h
grammar.h
import.h
intobject.h
intrcheck.h
listobject.h
longintrepr.h
longobject.h
marshal.h
metagrammar.h
methodobject.h
modsupport.h
moduleobject.h
node.h
object.h
objimpl.h
opcode.h
osdefs.h
parsetok.h
patchlevel.h
pgenheaders.h
py_curses.h
pydebug.h
pyerrors.h
pyfpe.h
pygetopt.h
pymem.h
pyport.h
pystate.h
Python.h
pythonrun.h
pythread.h
rangeobject.h
rename1.h
sliceobject.h
stringobject.h
structmember.h
symtable.h Preliminary support for future nested scopes 2001-02-27 04:23:34 +00:00
sysmodule.h
token.h
traceback.h
tupleobject.h
ucnhash.h
unicodeobject.h