cpython/Lib
Tim Peters 711088d9b8 Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort.
http://sourceforge.net/tracker/index.php?func=detail&aid=415514&group_id=5470&atid=105470
For short ints, Python defers to the platform C library to figure out what
%#x should do.  The code asserted that the platform C returned a string
beginning with "0x".  However, that's not true when-- and only when --the
*value* being formatted is 0.  Changed the code to live with C's inconsistency
here.  In the meantime, the problem does not arise if you format a long 0 (0L)
instead.  However, that's because the code *we* wrote to do %#x conversions on
longs produces a leading "0x" regardless of value.  That's probably wrong too:
we should drop leading "0x", for consistency with C, when (& only when) formatting
0L.  So I changed the long formatting code to do that too.
2001-04-12 00:35:51 +00:00
..
compiler typo 2001-04-11 16:43:13 +00:00
curses Bug #412086, reported by Peter Wilson: The _curses module doesn't 2001-04-05 16:08:41 +00:00
distutils Since bdist_wininst.py contains the installer executable, it had to be 2001-04-10 18:57:07 +00:00
encodings This patch changes the default behaviour of the builtin charmap 2001-01-03 21:29:14 +00:00
idlelib Fixes for Python 1.6 compatibility - socket bind and connect get a 2000-09-24 06:29:50 +00:00
lib-old Fixed syntax error. 2001-02-09 16:34:24 +00:00
lib-tk The lower() and tkraise() methods were calling the Canvas widget 2001-04-10 21:13:06 +00:00
plat-aix3 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-aix4 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-beos5 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-freebsd2 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-freebsd3 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-freebsd4 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-freebsd5 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-generic Use python$EXE instead of python, for Darwin. (Patch by Tony 2000-10-09 19:34:12 +00:00
plat-irix5 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-irix6 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-linux1 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-linux2 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-netbsd1 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-next3
plat-riscos Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger 2001-04-10 22:07:43 +00:00
plat-sunos4 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-sunos5 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-unixware7 SOCKET.py and TERMIOS.py are no longer used in this release. 2001-04-11 23:43:09 +00:00
site-packages Add a README file so that cvs update -P doesn't obliterate this 2000-03-31 20:03:56 +00:00
test Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort. 2001-04-12 00:35:51 +00:00
xml Corrected default value of the DocumentType.internalSubset attribute based 2001-04-05 14:41:30 +00:00
BaseHTTPServer.py Correction to test main. 2001-02-09 05:38:46 +00:00
Bastion.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
CGIHTTPServer.py Eliminate use of string.whitespace and a string import with it. 2001-02-09 12:10:26 +00:00
ConfigParser.py Make sure ConfigParser uses .optionxform() consistently; this affects 2001-02-26 21:55:34 +00:00
Cookie.py Since this module already uses doctest-style examples, I figured I'd 2001-04-06 19:39:11 +00:00
MimeWriter.py String method conversion. 2001-02-09 09:39:08 +00:00
Queue.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
SimpleHTTPServer.py Correction after translation test. 2001-02-09 10:26:06 +00:00
SocketServer.py Add a close_request method to the BaseServer so that the TCPServer class 2001-04-11 04:02:05 +00:00
StringIO.py Remove silly EMPTYSTRING global. Saves a global lookup. 2001-02-09 13:37:37 +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 removed __all__ from several modules 2001-02-18 03:30:53 +00:00
UserList.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
UserString.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
__future__.py Remove redundant "__future__:" from module docstring. 2001-03-15 10:45:44 +00:00
aifc.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
anydbm.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
asynchat.py Fix from the Madusa mailing list: 2001-04-08 07:23:44 +00:00
asyncore.py String method conversion. 2001-02-09 05:07:04 +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 added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
base64.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
bdb.py Make it clear that a bdb subclass must implement do_clear(). 2001-04-08 15:05:16 +00:00
binhex.py String method cleanup. 2001-02-10 00:06:00 +00:00
bisect.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
builtin.py
calendar.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
cgi.py Add a whole lot of stuff to __all__. 2001-03-19 13:40:44 +00:00
chunk.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
cmd.py This is SF patch #405952, by Anthony Baxter: 2001-03-22 21:59:20 +00:00
code.py String method conversion. 2001-02-09 08:56:30 +00:00
codecs.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
codeop.py Remove useless imports, as reported by PyChecker. 2001-04-08 00:43:13 +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 added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
copy.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
copy_reg.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
dbhash.py fail more completely by deleting dbhash from sys.modules if bsddb can't be 2001-01-25 13:47:00 +00:00
difflib.py Improve accuracy. In the .tex file, note the new "% BUG:" comments: an 2001-02-20 11:24:35 +00:00
dircache.py Whitespace normalization. 2001-03-16 08:29:48 +00:00
dis.py String method conversion. 2001-02-09 08:25:29 +00:00
doctest.py Changed doctest to run tests in alphabetic order of name. 2001-03-21 23:07:59 +00:00
dospath.py more __all__ updates 2001-01-20 23:34:12 +00:00
dumbdbm.py RISCOS changes by dschwertberger. 2001-03-02 06:43:49 +00:00
filecmp.py more __all__ updates 2001-01-20 23:34:12 +00:00
fileinput.py more __all__ updates 2001-01-20 23:34:12 +00:00
fnmatch.py Donovan Baarda <abo@users.sourceforge.net>: 2001-03-21 18:05:48 +00:00
formatter.py String method conversion. 2001-02-09 11:10:16 +00:00
fpformat.py more __all__ updates 2001-01-20 23:34:12 +00:00
ftplib.py remove global decl about unused variable 2001-04-09 04:31:50 +00:00
getopt.py more __all__ updates 2001-01-20 23:34:12 +00:00
getpass.py Get the needed constants from termios, not TERMIOS. 2001-02-27 21:23:31 +00:00
gettext.py added a few more __all__ lists 2001-01-23 15:35:05 +00:00
glob.py more __all__ updates 2001-01-20 23:34:12 +00:00
gopherlib.py String method conversion. 2001-02-09 10:10:02 +00:00
gzip.py Bug #409419: delete seek() and tell() methods, so callers can use getattr() 2001-03-20 15:51:14 +00:00
htmlentitydefs.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
htmllib.py String method conversion. 2001-02-09 08:25:29 +00:00
httplib.py An ssl-wrapped socket now returns '' on EOF, just like a regular 2001-02-01 23:35:20 +00:00
ihooks.py String method conversion. 2001-02-09 10:18:37 +00:00
imaplib.py Fix previous checkin, hopelessly broken as it was; reported by Detlef Lannert. 2001-02-22 13:24:27 +00:00
imghdr.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
imputil.py Add an uninstall method to the ImportManager. 2001-04-07 16:05:24 +00:00
inspect.py Add getmodulename() and getmoduleinfo() routines to inspect filenames. 2001-04-10 11:43:00 +00:00
keyword.py String method conversion. 2001-02-09 09:10:35 +00:00
knee.py String method conversion. 2001-02-09 09:48:45 +00:00
linecache.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
locale.py setlocale(): In _locale-missing compatibility function, string 2001-03-23 17:00:07 +00:00
macpath.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
macstat.py
macurl2path.py String method conversion. 2001-02-09 09:48:45 +00:00
mailbox.py Two changes: 2001-01-31 22:13:15 +00:00
mailcap.py String method conversion. 2001-02-09 10:23:55 +00:00
mhlib.py String method cleanup. 2001-02-10 00:22:33 +00:00
mimetools.py Do not hide a failure to create a temporary file; if it fails the work 2001-02-23 20:04:54 +00:00
mimetypes.py String method conversion. Added a trivial main to test it with. 2001-02-09 09:44:47 +00:00
mimify.py Fix an unqualified except:. 2001-04-10 15:42:02 +00:00
multifile.py Multifile.read(): Fix a broken conversion to string methods. 2001-03-12 02:56:15 +00:00
mutex.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
netrc.py Define & use NetrcParseError instead of improperly overloading SyntaxError. 2001-03-06 06:33:08 +00:00
nntplib.py String method conversion. 2001-02-09 07:02:17 +00:00
ntpath.py added several more __all__ lists 2001-02-06 01:07:02 +00:00
nturl2path.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
os.py Unify _Environ processing on riscos with other platforms. 2001-03-07 09:05:45 +00:00
pdb.doc
pdb.py SF bug #131560: pdb imports 'repr', causing name collision 2001-02-09 23:28:07 +00:00
persist.py
pickle.py test_pickle works on sizeof(long)==8 boxes again. 2001-04-10 05:02:52 +00:00
pipes.py a few more __all__ lists 2001-02-07 23:14:30 +00:00
popen2.py Whitespace normalization. 2001-02-09 20:06:00 +00:00
poplib.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
posixfile.py Fix two unqualified except: clauses. 2001-04-10 15:44:33 +00:00
posixpath.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pprint.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pre.py Make docstrings raw, since they contain literal backslashes. 2001-03-10 09:33:14 +00:00
profile.doc
profile.py Add doc string for run from profile.doc. (pydoc motivates me to write 2001-03-14 20:01:19 +00:00
pstats.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pty.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
py_compile.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pyclbr.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pydoc.py Fix typo in instantiation of ErrorDuringImport. 2001-04-10 12:22:01 +00:00
quopri.py Strip \r as trailing whitespace as part of soft line endings. 2001-03-22 22:30:21 +00:00
random.py Whitespace normalization. 2001-02-15 23:56:39 +00:00
re.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
reconvert.py bunch more __all__ lists 2001-02-15 22:15:14 +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 bunch more __all__ lists 2001-02-15 22:15:14 +00:00
rexec.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
rfc822.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
rlcompleter.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
robotparser.py Whitespace normalization. 2001-02-15 23:56:39 +00:00
sched.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
sgmllib.py Change RuntimeError to SGMLParseError, which subclasses RuntimeError 2001-03-16 20:04:57 +00:00
shelve.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
shlex.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
shutil.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
site.py Two minor changes for better Jython compatibility. Finn Bock says: 2001-03-23 17:53:49 +00:00
smtpd.py Use != instead of <>. Sorry, Barry. 2001-03-02 06:42:34 +00:00
smtplib.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
sndhdr.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
socket.py Whitespace normalization. 2001-03-29 04:36:09 +00:00
sre.py sre 2.1b2 update: 2001-03-22 15:50:10 +00:00
sre_compile.py sre 2.1b2 update: 2001-03-22 15:50:10 +00:00
sre_constants.py sre 2.1b2 update: 2001-03-22 15:50:10 +00:00
sre_parse.py sre 2.1b2 update: 2001-03-22 15:50:10 +00:00
stat.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
statcache.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
statvfs.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
string.py removed __all__ from several modules 2001-02-18 03:30:53 +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 Update for augmented assignment. 2000-08-24 21:08:39 +00:00
symtable.py Whitespace normalization. 2001-03-29 04:36:09 +00:00
tabnanny.py Get rid of useless string import, as reported by Neal Norwitz's PyChecker.py 2001-04-08 00:38:42 +00:00
telnetlib.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 2001-03-01 04:27:19 +00:00
tempfile.py Search /tmp before /var/tmp and /usr/tmp -- this seems preferred. 2001-03-02 05:51:16 +00:00
threading.py SF bug [#410708] Condition.wait() and KeyboardInterrupt. 2001-04-02 20:15:57 +00:00
toaiff.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 2001-03-01 04:27:19 +00:00
token.py String method cleanup. 2001-02-10 00:22:33 +00:00
tokenize.py Provide a StopTokenizing exception for conveniently exiting the loop. 2001-03-23 05:22:49 +00:00
traceback.py Whitespace normalization. 2001-03-29 04:36:09 +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
tzparse.py Add a deprecation warning to this module. 2001-03-20 18:36:48 +00:00
unittest.py * Remove exc_info() kludge -- it actually messed up the Jython output 2001-04-09 15:37:31 +00:00
urllib.py fixing 408085 - redirect from https becomes http 2001-04-09 14:54:21 +00:00
urllib2.py Idiotic braino caused HTTP openers to ignore proxies. 2001-04-11 07:44:53 +00:00
urlparse.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 2001-03-01 04:27:19 +00:00
user.py
uu.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 2001-03-01 04:27:19 +00:00
warnings.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 2001-03-01 04:27:19 +00:00
wave.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 2001-03-01 04:27:19 +00:00
weakref.py mapping(): Remove this function since it does not add anything to the API. 2001-04-10 19:11:23 +00:00
webbrowser.py Fixes a fatal bug when the module has computed alternatives containing %s. 2001-03-31 01:50:52 +00:00
whichdb.py Whitespace normalization. 2001-03-16 08:29:48 +00:00
whrandom.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00
xdrlib.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 2001-03-01 04:27:19 +00:00
xmllib.py Moved clearing of "literal" flag. The flag is set in setliteral which 2001-03-14 17:03:30 +00:00
zipfile.py Try an except: after an import into "except ImportError". 2001-04-10 15:37:12 +00:00