0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 17:47:13 +01:00
cpython/Python
Jeremy Hylton bc32024769 Extend support for from __future__ import nested_scopes
If a module has a future statement enabling nested scopes, they are
also enable for the exec statement and the functions compile() and
execfile() if they occur in the module.

If Python is run with the -i option, which enters interactive mode
after executing a script, and the script it runs enables nested
scopes, they are also enabled in interactive mode.

XXX The use of -i with -c "from __future__ import nested_scopes" is
not supported.  What's the point?

To support these changes, many function variants have been added to
pythonrun.c.  All the variants names end with Flags and they take an
extra PyCompilerFlags * argument.  It is possible that this complexity
will be eliminated in a future version of the interpreter in which
nested scopes are not optional.
2001-03-22 02:47:58 +00:00
..
.cvsignore
atof.c
bltinmodule.c Extend support for from __future__ import nested_scopes 2001-03-22 02:47:58 +00:00
ceval.c Extend support for from __future__ import nested_scopes 2001-03-22 02:47:58 +00:00
codecs.c
compile.c If a code object is compiled with nested scopes, define the CO_NESTED flag. 2001-03-22 02:32:48 +00:00
dup2.c
dynload_aix.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c
dynload_mac.c
dynload_next.c
dynload_os2.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c Use Py_CHARMASK for ctype macros. Fixes bug #232787. 2001-03-06 12:12:02 +00:00
exceptions.c SyntaxError__init__(): Be a little more robust when picking apart the 2001-02-28 21:52:10 +00:00
fmod.c
frozen.c
frozenmain.c
future.c When iterating over the names imported in a future statement, ignore the 2001-03-10 02:15:37 +00:00
getargs.c Related to SF bug 132008 (PyList_Reverse blows up). 2001-02-12 22:13:26 +00:00
getcompiler.c
getcopyright.c
getcwd.c
getmtime.c
getopt.c
getplatform.c
getversion.c
graminit.c
hypot.c
import.c Case-checking was broken on the Macintosh. Fixed. 2001-03-20 23:09:54 +00:00
importdl.c
importdl.h
marshal.c
memmove.c
modsupport.c Py_BuildValue(): Add "D" conversion to create a Python complex value from 2001-03-12 21:03:26 +00:00
mystrtoul.c
pyfpe.c
pystate.c
pythonmain.c
pythonrun.c Extend support for from __future__ import nested_scopes 2001-03-22 02:47:58 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c
structmember.c
symtable.c Improved __future__ parser; still more to do 2001-02-27 19:07:02 +00:00
sysmodule.c
thread_beos.h
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h
thread_os2.h
thread_pth.h
thread_pthread.h
thread_sgi.h
thread_solaris.h
thread_wince.h
thread.c
traceback.c