• Jeremy Hylton's avatar
    Extend support for from __future__ import nested_scopes · bc320247
    Jeremy Hylton yazdı
    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.
    bc320247
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
setup.py Loading commit data...