cpython/Python
Jeremy Hylton 81e9502df6 Provisional implementation of PEP 3104.
Add nonlocal_stmt to Grammar and Nonlocal node to AST.  They both
parallel the definitions for globals.  The symbol table treats
variables declared as nonlocal just like variables that are free
implicitly.

This change is missing the language spec changes, but makes some
decisions about what the spec should say via the unittests.  The PEP
is silent on a number of decisions, so we should review those before
claiming that nonlocal is complete.

Thomas Wouters made the grammer and ast changes.  Jeremy Hylton added
the symbol table changes and the tests.  Pete Shinners and Neal
Norwitz helped review the code.
2007-02-27 06:50:52 +00:00
..
asdl.c Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
ast.c Provisional implementation of PEP 3104. 2007-02-27 06:50:52 +00:00
atof.c
bltinmodule.c Add raw_input() back, named input(). Revive the old unittests too. 2007-02-26 16:59:55 +00:00
ceval.c Make it so TypeError is raised if an instance of an object is put in an 2007-02-26 22:01:14 +00:00
codecs.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
compile.c Provisional implementation of PEP 3104. 2007-02-27 06:50:52 +00:00
dup2.c
dynload_aix.c Fix SF bug #1072182, problems with signed characters. 2005-12-19 06:05:18 +00:00
dynload_atheos.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
dynload_next.c Fix for 838140: don't call NSUnlinkModule when we fail to find our 2004-07-15 22:28:48 +00:00
dynload_os2.c
dynload_shlib.c Fix a warning from gcc by adding a missed const qualifier. 2006-01-04 01:30:17 +00:00
dynload_stub.c
dynload_win.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
errors.c Remove the exceptions builtin module, all the exceptions are already builtin. 2007-02-26 22:22:47 +00:00
fmod.c
frozen.c Fix test_frozen. 2007-02-09 23:27:01 +00:00
frozenmain.c Patch #569753: Remove support for WIN16. 2002-06-30 15:26:10 +00:00
future.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
getargs.c Merged the int/long unification branch, by very crude means (sorry Thomas!). 2007-01-14 03:31:43 +00:00
getcompiler.c
getcopyright.c Merged revisions 53005-53303 via svnmerge from 2007-01-09 23:18:33 +00:00
getcwd.c Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
getmtime.c Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
getopt.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
getplatform.c
getversion.c
graminit.c Provisional implementation of PEP 3104. 2007-02-27 06:50:52 +00:00
hypot.c
import.c Essential changes for print function changes. 2007-02-09 05:32:43 +00:00
importdl.c Patch #794826: Add __file__ in dynamically loaded modules for multiple 2003-09-04 18:45:59 +00:00
importdl.h PEP 302 + zipimport: 2002-12-30 22:08:05 +00:00
mactoolboxglue.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
marshal.c Merged the int/long unification branch, by very crude means (sorry Thomas!). 2007-01-14 03:31:43 +00:00
memmove.c
modsupport.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
mysnprintf.c
mystrtoul.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
peephole.c Two more patches by Tony Lownds (SF# 1607548). 2007-02-26 21:23:50 +00:00
pyarena.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
pyfpe.c
pystate.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
pystrtod.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
Python-ast.c Provisional implementation of PEP 3104. 2007-02-27 06:50:52 +00:00
pythonrun.c Remove the exceptions builtin module, all the exceptions are already builtin. 2007-02-26 22:22:47 +00:00
sigcheck.c
strdup.c
strerror.c Getting rid of all the code inside #ifdef macintosh too. 2003-11-20 01:44:59 +00:00
strtod.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
structmember.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
symtable.c Provisional implementation of PEP 3104. 2007-02-27 06:50:52 +00:00
sysmodule.c Kill off softspace completely (except in formatter.py which seems to have 2007-02-09 23:20:19 +00:00
thread.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
thread_atheos.h
thread_beos.h
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
thread_os2.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
thread_pth.h Patch #805613: Fix usage of the PTH library. 2003-09-20 11:13:36 +00:00
thread_pthread.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
thread_sgi.h Remove support for DYNIX, IRIX 4, --with-sgi-dl, --with-dl-dld 2004-01-17 04:04:13 +00:00
thread_solaris.h Patch #716969: Detect thread creation failure. Will backport to 2.2. 2003-04-19 07:44:52 +00:00
thread_wince.h bug 1234979 addition 2005-07-09 15:26:33 +00:00
traceback.c Merged revisions 53451-53537 via svnmerge from 2007-02-01 18:02:27 +00:00