0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
cpython/Python
Guido van Rossum 1c917072ca Very subtle syntax change: in a list comprehension, the testlist in
"for <var> in <testlist> may no longer be a single test followed by
a comma.  This solves SF bug #431886.  Note that if the testlist
contains more than one test, a trailing comma is still allowed, for
maximum backward compatibility; but this example is not:

    [(x, y) for x in range(10), for y in range(10)]
                              ^

The fix involved creating a new nonterminal 'testlist_safe' whose
definition doesn't allow the trailing comma if there's only one test:

    testlist_safe: test [(',' test)+ [',']]
2001-10-15 15:44:05 +00:00
..
.cvsignore
atof.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
bltinmodule.c Implement isinstance(x, (A, B, ...)). Note that we only allow tuples, 2001-10-07 20:54:12 +00:00
ceval.c Suppress a bunch of "value computed is not used" warnings when building in 2001-10-13 06:11:28 +00:00
codecs.c
compile.c Very subtle syntax change: in a list comprehension, the testlist in 2001-10-15 15:44:05 +00:00
dup2.c
dynload_aix.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c
dynload_mac.c
dynload_next.c Patch by Jonathan Wight (slightly reformatted) to forestall loading the 2001-08-11 21:54:11 +00:00
dynload_os2.c
dynload_shlib.c Patch #455231: Support ELF properly on OpenBSD. 2001-09-05 14:24:43 +00:00
dynload_stub.c
dynload_win.c
errors.c SF bug [#467265] Compile errors on SuSe Linux on IBM/s390. 2001-10-02 21:32:07 +00:00
exceptions.c weakref.ReferenceError becomes a built-in exception now that weak ref objects 2001-10-05 21:50:08 +00:00
fmod.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
frozen.c
frozenmain.c Add -E command line switch (ignore environment variables like PYTHONHOME 2001-07-23 16:30:27 +00:00
future.c Fix SF bug [ #450245 ] Error in parsing future stmts 2001-08-20 20:32:33 +00:00
getargs.c Undo part of 2.59: 't' case of convertsimple() should not use convertbuffer(). 2001-10-11 14:40:37 +00:00
getcompiler.c
getcopyright.c
getcwd.c
getmtime.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
getopt.c
getplatform.c
getversion.c
graminit.c Very subtle syntax change: in a list comprehension, the testlist in 2001-10-15 15:44:05 +00:00
hypot.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
import.c Remove a couple of unused local variables (bug #445960, compiler warnings 2001-10-04 14:52:06 +00:00
importdl.c
importdl.h
mactoolboxglue.c Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length' 2001-09-10 22:00:39 +00:00
marshal.c fix for part of bug #453523: disable unmarshalling of code objects in 2001-08-30 14:50:20 +00:00
memmove.c
modsupport.c Patch #445762: Support --disable-unicode 2001-08-17 18:39:25 +00:00
mysnprintf.c Add mysnprintf.c to Windows build, + squash compiler wngs in mysnprintf.c. 2001-07-31 22:10:29 +00:00
mystrtoul.c
pyfpe.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
pystate.c Add a low-level API to access interpreters, for David Beazley. 2001-07-19 12:19:27 +00:00
pythonrun.c SF patch #467455 : Enhanced environment variables, by Toby Dickenson. 2001-10-12 22:17:56 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
structmember.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
symtable.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
sysmodule.c Rationalize the events passed to the profiler (no changes for the tracer). 2001-10-04 14:48:42 +00:00
thread_beos.h
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h SF bug [#456252] Python should never stomp on [u]intptr_t. 2001-08-29 21:37:10 +00:00
thread_os2.h
thread_pth.h
thread_pthread.h Do not define _POSIX_THREADS if unistd.h defines it. 2001-10-15 14:34:42 +00:00
thread_sgi.h
thread_solaris.h
thread_wince.h
thread.c Repair more now-obsolete references to config.h. 2001-07-26 21:34:59 +00:00
traceback.c