cpython/Lib
Jeremy Hylton 8d22b0409b Fix com_arglist() and update grammar fragment.
SF bug #522264 reported by Evelyn Mitchell.

The code included a comment about "STAR STAR" which was translated
into the code as the bogus attribute token.STARSTAR.  This name never
caused an attribute error because it was never retrieved.  The code
was based on an old version of the grammar that specified kwargs as
two tokens ('*' '*').  I checked as far back as 2.1 and didn't find
this production.

The fix is simple, because token.DOUBLESTAR is the only token
allowed.  Also update the grammar fragment in com_arglist().

XXX I'll bet lots of other grammar fragments in comments are out of
date, probably in this module and in compile.c.
2002-04-19 22:56:37 +00:00
..
compiler Fix com_arglist() and update grammar fragment. 2002-04-19 22:56:37 +00:00
curses Patch #521670: Remove unused sys import. 2002-02-23 22:31:53 +00:00
distutils Patch #531901 by Mark W. Alexander: adds a new distutils packager 2002-04-17 20:30:10 +00:00
email parseaddr(): Don't use rfc822.parseaddr() because this now implies a 2002-04-15 22:00:25 +00:00
encodings Fix for bug #222395: UTF-16 et al. don't handle .readline(). 2002-04-05 12:12:00 +00:00
hotshot Added docstrings to the Profile class. 2002-04-16 19:27:23 +00:00
idlelib further work on new config system; 2002-03-27 08:40:46 +00:00
lib-old Use string.ascii_letters instead of string.letters (SF bug #226706). 2001-07-20 19:05:50 +00:00
lib-tk Patch #539392: Invoke setlocale, try opening the file in demo mode. 2002-04-08 14:51:31 +00:00
plat-aix3 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-aix4 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-beos5 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-freebsd2 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-freebsd3 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-freebsd4 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-freebsd5 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-generic Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-irix5 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-irix6 Regenerated for Irix 6.5. 2002-03-17 21:49:20 +00:00
plat-linux1 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-linux2 Regenerated for Linux 2.2.4. 2001-12-22 15:23:50 +00:00
plat-netbsd1 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-next3 Do no regenerate modules that should no longer be here. 2001-05-10 15:52:47 +00:00
plat-os2emx Create and populate OS/2 EMX port platform specific library directory: 2002-02-22 11:06:30 +00:00
plat-riscos SF patch 493739 2 Bugfixes for 2.2c1 (RISC OS specific), from 2001-12-15 22:12:47 +00:00
plat-sunos4 Do no regenerate modules that should no longer be here. 2001-05-10 15:52:47 +00:00
plat-sunos5 Regenerate for Solaris 8. 2001-08-09 12:33:32 +00:00
plat-unixware7 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
site-packages
test Fix SF #544995 (zlib crash on second flush call) 2002-04-19 14:37:07 +00:00
xml Not sure why the regression test missed this, but the PyXML tests caught it. 2002-04-04 19:12:31 +00:00
BaseHTTPServer.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
Bastion.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
CGIHTTPServer.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
ConfigParser.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
Cookie.py Patch #444359: Remove unused imports. 2001-08-02 07:15:29 +00:00
FCNTL.py Add a new FCNTL.py backward compatibility module that issues a deprecation 2001-05-09 21:13:23 +00:00
HTMLParser.py Convert to using string methods instead of the string module. 2001-12-03 17:09:50 +00:00
MimeWriter.py String method conversion. 2001-02-09 09:39:08 +00:00
Queue.py Fix bug 544473 - "Queue module can deadlock". 2002-04-19 00:11:32 +00:00
SimpleHTTPServer.py Patch #430706: Persistent connections in BaseHTTPServer. 2002-03-17 18:37:22 +00:00
SimpleXMLRPCServer.py _dispatch(): Do no re-define the resolve_dotted_atttribute() function 2001-09-29 04:54:33 +00:00
SocketServer.py SF bug #543318 (Frank J. Tobin). 2002-04-15 00:36:48 +00:00
StringIO.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
TERMIOS.py No need to call filterwarnings() to suppress further warnings from this 2001-02-27 21:51:47 +00:00
UserDict.py Add pop() to UserDict. 2002-04-13 14:03:38 +00:00
UserList.py Patch #424475: Speed-up tp_compare usage, by special-casing the common 2001-06-09 07:34:05 +00:00
UserString.py Apply the second version of SF patch http://www.python.org/sf/536241 2002-04-15 13:36:47 +00:00
__future__.py Repair repr of future-features (wasn't updated to include the new 2001-08-24 17:13:54 +00:00
__phello__.foo.py Fix the frozen bytecode for __hello__ (betcha didn't know that existed 2001-10-18 18:49:37 +00:00
aifc.py SF #515004 cleanup 2002-02-11 17:56:27 +00:00
anydbm.py dump the string exception fallback for anydbm.error. 2002-03-18 03:07:20 +00:00
asynchat.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
asyncore.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
atexit.py Bug #128475: mimetools.encode (sometimes) fails when called from a thread. 2001-01-21 03:40:37 +00:00
audiodev.py Commenting out the getfillable() method -- it's broken, and nobody 2001-08-13 15:04:33 +00:00
base64.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
bdb.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
binhex.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
bisect.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
calendar.py SF bug 533234: tm_isdst > 1 Passed to strftime. 2002-03-23 03:26:53 +00:00
cgi.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
cgitb.py Make the module docstring agree with reality: the module prvides the 2001-12-19 14:27:41 +00:00
chunk.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
cmd.py tighten up except - in this context, AttributeError is the only exception 2002-03-24 16:34:21 +00:00
code.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
codecs.py Set default value for readlines.sizehint to None. Change needed for 2.2.1 2002-03-05 15:46:38 +00:00
codeop.py A fiddled version of the rest of Michael Hudson's SF patch 2001-08-17 22:11:27 +00:00
colorsys.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
commands.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
compileall.py Patch #495598: add an -q (quiet) option to pycompile. 2002-03-18 12:44:08 +00:00
copy.py SF patch 518765 (Derek Harland): Bug in copy.py when used through 2002-02-28 23:19:52 +00:00
copy_reg.py _reduce(): Avoid infinite recursion in the pickler when self.__class__ 2001-12-27 16:27:28 +00:00
dbhash.py Fix bug #422702: Make flag argument to open optional, and document it that way. 2001-06-05 05:33:19 +00:00
difflib.py Add the 'bool' type and its values 'False' and 'True', as described in 2002-04-03 22:41:51 +00:00
dircache.py Whitespace normalization. 2001-03-16 08:29:48 +00:00
dis.py SF #515009, delete global variable that was apparently used only 2002-02-11 18:14:22 +00:00
doctest.py Add the 'bool' type and its values 'False' and 'True', as described in 2002-04-03 22:41:51 +00:00
dospath.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
dumbdbm.py Whitespace normalization. 2002-02-16 07:34:19 +00:00
filecmp.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
fileinput.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
fnmatch.py Patch #409973: Speedup glob.glob, add fnmatch.filter. 2001-06-06 06:24:38 +00:00
formatter.py Remove empty __init__ (PyChecker) 2001-08-13 14:55:17 +00:00
fpformat.py more __all__ updates 2001-01-20 23:34:12 +00:00
ftplib.py Access the exception argument to see whether it starts with '500'. 2002-03-10 15:59:58 +00:00
getopt.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
getpass.py win_getpass(): if sys.stdin is not sys.__stdin__, use 2001-08-30 15:07:44 +00:00
gettext.py Add a per-message fallback mechanism for translations. 2002-01-11 06:58:49 +00:00
glob.py Patch #409973: Speedup glob.glob, add fnmatch.filter. 2001-06-06 06:24:38 +00:00
gopherlib.py The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. 2002-02-16 23:06:19 +00:00
gzip.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
hmac.py Whitespace normalization. 2001-11-13 21:51:26 +00:00
htmlentitydefs.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
htmllib.py int() of a string is only expected to through ValueError, so do not use 2001-05-11 18:45:52 +00:00
httplib.py oops - export InvalidURL in __all__ 2002-03-24 16:56:45 +00:00
ihooks.py String method conversion. 2001-02-09 10:18:37 +00:00
imaplib.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
imghdr.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
imputil.py SF #515012, cleanup: remove unused variable 2002-02-11 18:01:32 +00:00
inspect.py Fix getcomments() so that it doesn't fail with TypeErrors. 2002-03-28 23:01:56 +00:00
keyword.py Updated keyword.py for "yield". 2001-06-19 00:26:25 +00:00
linecache.py Mass checkin of universal newline support. 2002-04-14 20:12:41 +00:00
locale.py eliminate unqualified except when checking for presence of LC_MESSAGES 2002-03-25 21:40:36 +00:00
macpath.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
macurl2path.py String method conversion. 2001-02-09 09:48:45 +00:00
mailbox.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
mailcap.py Opening a file for reading can raise IOError, so only catch that. 2001-05-11 18:47:54 +00:00
markupbase.py Re-arrange things and remove some unused variables/imports to keep pychecker 2001-10-26 18:02:28 +00:00
mhlib.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
mimetools.py os was already imported in the module, no need to re-import 2002-03-26 16:21:52 +00:00
mimetypes.py Separate the script portion from the library portion; everything that 2001-12-05 15:58:29 +00:00
mimify.py Fix for SF bug #425868. 2001-07-04 10:15:58 +00:00
multifile.py Martijn Pieters convinced me that when readline() strips the trailing 2001-10-05 21:22:21 +00:00
mutex.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
netrc.py [Bug #532115] netrc module was broken 2002-03-22 02:46:41 +00:00
nntplib.py The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. 2002-02-16 23:06:19 +00:00
ntpath.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
nturl2path.py Use string.ascii_letters instead of string.letters. 2001-07-20 18:52:02 +00:00
os.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
os2emxpath.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
pdb.doc
pdb.py Add exit as alias for quit, as the easiest way to address SF bug 2002-04-15 00:48:24 +00:00
pickle.py Implement an idea by Paul Rubin: 2002-04-05 19:30:08 +00:00
pipes.py Patch #444359: Remove unused imports. 2001-08-02 07:15:29 +00:00
popen2.py tighten up except - os.close only raises OSError 2002-03-24 20:48:26 +00:00
poplib.py The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. 2002-02-16 23:06:19 +00:00
posixfile.py Add a warning to the posixfile module stating that it will go away. 2001-10-24 22:03:35 +00:00
posixpath.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
pprint.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
pre.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
profile.doc
profile.py Added a missing period at the end of an error message. 2001-12-05 22:27:47 +00:00
pstats.py Put the deprecated .ignore() method back where it was. 2001-10-08 06:28:18 +00:00
pty.py Whitespace normalization. 2001-05-29 06:06:54 +00:00
py_compile.py Mass checkin of universal newline support. 2002-04-14 20:12:41 +00:00
pyclbr.py SF bug #473525 pyclbr broken 2001-10-24 20:22:40 +00:00
pydoc.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
quopri.py import statements only raise ImportError, right? 2002-03-23 05:55:18 +00:00
random.py BDFL agreed with Tim: rehabilitate randint(). 2002-04-13 14:41:19 +00:00
re.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
reconvert.py Suppress the warning about regex here. 2001-09-04 15:18:54 +00:00
regex_syntax.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
regsub.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
repr.py Rename "dictionary" (type and constructor) to "dict". 2001-10-29 22:25:45 +00:00
rexec.py Ignore execfile() return value; reported by Neal Norwitz. 2001-10-13 18:34:42 +00:00
rfc822.py AddrlistClass -> AddressList 2002-04-12 20:55:31 +00:00
rlcompleter.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
robotparser.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
sched.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
sgmllib.py Re-arrange things and remove some unused variables/imports to keep pychecker 2001-10-26 18:02:28 +00:00
shelve.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
shlex.py Unused variable (caught by PyChecker) removed. 2001-04-17 17:20:19 +00:00
shutil.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
site.py Removed old Digital Creations copyright/license notices (with 2002-04-04 17:52:50 +00:00
smtpd.py SF #515021, print the refused list to the DEBUGSTREAM, so the parameter is used 2002-02-11 18:05:05 +00:00
smtplib.py Whitespace normalization. 2002-04-16 01:38:40 +00:00
sndhdr.py Amazing. This would open the sound file in text mode. Fixed. 2001-07-31 06:27:07 +00:00
socket.py Repair so that importing socket doesn't blow up on platforms that lack 2002-02-17 04:25:24 +00:00
sre.py added finditer sanity check 2001-10-28 20:15:40 +00:00
sre_compile.py Added docstrings by Neal Norwitz. This closes SF bug #450980. 2001-09-04 19:10:20 +00:00
sre_constants.py Added docstrings by Neal Norwitz. This closes SF bug #450980. 2001-09-04 19:10:20 +00:00
sre_parse.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
stat.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
statcache.py Add deprecation warnings for modules as documented 2002-04-10 02:04:00 +00:00
statvfs.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
string.py Apply the second version of SF patch http://www.python.org/sf/536241 2002-04-15 13:36:47 +00:00
stringold.py Nuke accurate but confusing and unhelpful comments about split vs splitfields. 2001-02-09 20:18:41 +00:00
sunau.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
sunaudio.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
symbol.py track addition of testlist_safe to Grammar 2001-10-17 13:13:04 +00:00
symtable.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
tabnanny.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
telnetlib.py The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. 2002-02-16 23:06:19 +00:00
tempfile.py If possible, set FD_CLOEXEC flag on file descriptors opened using 2002-03-24 22:21:48 +00:00
this.py Whitespace cleanup. 2002-02-08 20:41:34 +00:00
threading.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
toaiff.py Capture exception message (PyChecker) 2001-08-13 14:40:47 +00:00
token.py Remove redundant 'import string' (PyChecker). 2001-08-13 15:48:06 +00:00
tokenize.py Remove some now-obsolete generator future statements. 2002-04-01 00:28:59 +00:00
traceback.py SF bug 431772: traceback.print_exc() causes traceback 2001-06-10 18:58:26 +00:00
tty.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 2001-03-01 04:27:19 +00:00
types.py Remove some now-obsolete generator future statements. 2002-04-01 00:28:59 +00:00
tzparse.py Add a deprecation warning to this module. 2001-03-20 18:36:48 +00:00
unittest.py Synch with pyunit CVS: 2001-12-17 10:13:17 +00:00
urllib.py Fix from SF bug #541980 (Jacques A. Vidrine). 2002-04-15 00:25:01 +00:00
urllib2.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00
urlparse.py amk's fix attached to 2002-03-18 13:06:00 +00:00
user.py
uu.py decode(): Raise a uu.Error if no out_file is given but the file 2001-08-17 19:59:34 +00:00
warnings.py resetwarnings(): Remove extra space from docstring guts. 2002-04-16 01:51:25 +00:00
wave.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
weakref.py WeakKeyDictionary.has_key(): If the key being tested is not weakly 2001-11-06 16:36:53 +00:00
webbrowser.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
whichdb.py SF patch #474590 -- RISC OS support 2001-10-24 20:42:55 +00:00
whrandom.py Guido sez to remove the deprecation warning for a year. 2002-04-11 20:57:30 +00:00
xdrlib.py Derive exception classes from Exception 2002-03-31 13:59:18 +00:00
xmllib.py Add deprecation warnings for modules as documented 2002-04-10 02:04:00 +00:00
xmlrpclib.py re was already imported in the module, no need to re-import 2002-03-26 16:23:28 +00:00
zipfile.py Partial introduction of bools where appropriate. 2002-04-07 06:36:23 +00:00