cpython/Lib
Tim Peters 7dfd5701b2 There's a persistent rumor on the spambayes mailing list that dumbdbm
databases are associated with corruption problems, so I studied this code
carefully and ran some brutal stress tests.  I didn't find any bugs,
although it's unclear whether this code *intends* that __setitem__ can
leave the directory file out of synch with the data file (so
if a dumbdbm isn't properly closed, and the value of an existing key
was ever replaced, corruption is almost certain, where "corruption"
means the directory file is out of synch with the data file).

Added many comments and generally modernized the code.  Examples of the
latter:  we have better ways of reading a whole file line-by-line now;
eval() now tolerates a trailing newline; the %r format code can be used
to avoid explicit repr/backtick calls; and the code often broke tuples
into their components when it was clearer and faster to just leave them
as tuples.
2003-07-12 20:11:25 +00:00
..
bsddb fix to work on python <= 2.1 2003-07-09 05:33:14 +00:00
compiler Jacob Hallen cornered me here at EuroPython and got me to look at 2003-06-27 12:32:39 +00:00
curses SF patch #701494: more apply removals 2003-04-06 09:01:11 +00:00
distutils Do not add extra "\n" after bang line. 2003-06-27 19:33:38 +00:00
email _make_boundary(): A minor optimization suggested by the Timbot. 2003-06-24 20:19:34 +00:00
encodings Remove usage of re module from encodings package search function. 2003-05-16 17:07:51 +00:00
hotshot Move testing code into "if __name__ == '__main__'" so it's not run on import. 2003-03-28 16:28:48 +00:00
idlelib SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds) 2003-07-09 18:48:24 +00:00
lib-old
lib-tk Fix SF bug #763637, 2.3b2 unpack tuple of wrong size in after_cancel 2003-07-01 21:12:47 +00:00
logging SF patch #761519: Fixes for bugs 760703 and 757821 2003-06-27 21:43:39 +00:00
plat-aix3
plat-aix4
plat-atheos
plat-beos5
plat-darwin
plat-freebsd2
plat-freebsd3
plat-freebsd4
plat-freebsd5
plat-generic
plat-irix5
plat-irix6
plat-linux1
plat-linux2
plat-mac Fixed a bug that's been there from the beginning but wasn't noticed 2003-07-10 14:53:27 +00:00
plat-netbsd1
plat-next3
plat-os2emx Extend the pwd & grp emulations to support accessing the pwd/grp 2003-07-10 12:52:54 +00:00
plat-riscos Patch #734231: Update RiscOS support. In particular, correct 2003-05-10 07:36:56 +00:00
plat-sunos4
plat-sunos5
plat-unixware7
site-packages
test Don't include slash in search string; it's OS-specific. 2003-07-11 20:22:55 +00:00
xml Add missing self. before curNode. This may need to be committed 2003-06-29 04:50:34 +00:00
__future__.py
__phello__.foo.py
_strptime.py Fixes bug of timezone value being left as -1 when ``time.tzname[0] == 2003-07-03 19:59:57 +00:00
aifc.py
anydbm.py
asynchat.py [Patch #649762] Fix for asynchat endless loop 2003-03-10 15:16:54 +00:00
asyncore.py Fix comment typo 2003-02-14 01:13:01 +00:00
atexit.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
audiodev.py
base64.py
BaseHTTPServer.py Fix SF bug #747348 docstring mistake in BaseHTTPServer.py. \n\nBackport Candidate 2003-06-02 14:25:43 +00:00
Bastion.py
bdb.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
binhex.py
bisect.py
calendar.py SF 685011: calendar module overflow handling 2003-02-13 22:58:02 +00:00
cgi.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
CGIHTTPServer.py SF bug #430160: CGIHTTPServer.py POST bug using IE 2003-06-29 05:06:56 +00:00
cgitb.py Whitespace normalization. 2003-06-29 05:46:54 +00:00
chunk.py
cmd.py Whitespace normalization. 2003-02-19 02:35:07 +00:00
code.py - Finally fixed the bug in compile() and exec where a string ending 2003-02-13 22:07:59 +00:00
codecs.py Fix typos. 2003-02-02 23:08:27 +00:00
codeop.py Don't replace an empty line with "pass" when symbol == "eval", where 2003-05-16 01:24:30 +00:00
colorsys.py
commands.py
compileall.py
ConfigParser.py Fix arguments for instantiating InterpolationSyntaxError 2003-06-29 04:23:35 +00:00
Cookie.py
copy.py Copy builtin functions as atomic. Fixes #746304. Will backport to 2.2. 2003-06-14 07:10:06 +00:00
copy_reg.py Revert previous checkin and just add a comment about constructor_ob. 2003-06-27 16:58:43 +00:00
csv.py One more multiple exception catch should be in a tuple. 2003-06-12 04:05:00 +00:00
dbhash.py typo 2003-05-05 14:16:41 +00:00
difflib.py Fix SF bug #763023, difflib.py: ratio() zero division not caught 2003-07-01 14:59:46 +00:00
dircache.py
dis.py Whitespace normalization. 2003-03-07 17:30:48 +00:00
doctest.py Expose the 'master' instance mentioned in the docs. 2003-07-11 22:36:52 +00:00
DocXMLRPCServer.py Patch #727805: Remove extra line ending from CGI responses. 2003-05-01 05:05:09 +00:00
dumbdbm.py There's a persistent rumor on the spambayes mailing list that dumbdbm 2003-07-12 20:11:25 +00:00
dummy_thread.py Cause calling interrupt_main in main thread raise KeyboardInterrupt instantly. 2003-06-13 23:56:32 +00:00
dummy_threading.py
FCNTL.py
filecmp.py Module review: 2003-02-27 00:05:31 +00:00
fileinput.py
fnmatch.py
formatter.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
fpformat.py
ftplib.py
getopt.py A few naughty external scripts do 'raise getopt.error, "blah"', and 2003-02-06 19:52:56 +00:00
getpass.py
gettext.py GNUTranslations._parse(): Fix SF bug #658233, where continuation lines 2003-05-20 17:26:48 +00:00
glob.py
gopherlib.py
gzip.py [Patch #654421 from Matthew Mueller] 2003-02-05 21:35:07 +00:00
heapq.py
hmac.py
htmlentitydefs.py Add two dictionaries to htmlentitydefs: name2codepoint maps 2003-04-16 09:46:13 +00:00
htmllib.py
HTMLParser.py Accept commas in unquoted attribute values. 2003-03-14 16:21:57 +00:00
httplib.py Fix sf bug 666219: assertion error in httplib. 2003-06-29 17:55:05 +00:00
ihooks.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
imaplib.py Comment out cap, it was unused. 2003-06-29 04:21:43 +00:00
imghdr.py
imputil.py
inspect.py Whitespace normalization. 2003-06-29 05:46:54 +00:00
keyword.py
linecache.py Whitespace normalization. 2003-06-29 16:59:43 +00:00
locale.py Support '' as the argument for the setlocale emulation. Fixes #678259. 2003-03-30 15:42:13 +00:00
macpath.py Getting rid of macfs. 2003-02-27 23:18:46 +00:00
macurl2path.py
mailbox.py
mailcap.py
markupbase.py Whitespace normalization. 2003-04-24 16:02:54 +00:00
mhlib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
mimetools.py choose_boundary(): This no longer uses random, so stop importing it. 2003-06-15 22:12:23 +00:00
mimetypes.py guess_all_extensions(): Return the empty list instead of None when 2003-06-09 22:27:41 +00:00
MimeWriter.py
mimify.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
modulefinder.py Patch #698082 from Thomas Heller: Modulefinder didn't exclude modules 2003-03-05 17:23:48 +00:00
multifile.py
mutex.py
netrc.py SF bug 557704: netrc module can't handle all passwords 2003-04-24 20:11:20 +00:00
new.py
nntplib.py - Several methods of nntplib.NNTP have grown an optional file argument 2003-04-19 18:04:57 +00:00
ntpath.py make nt altsep forward slash - closes bug 709428 2003-03-28 22:23:24 +00:00
nturl2path.py
opcode.py Revert the previous enhancement to the bytecode optimizer. 2003-04-24 05:45:23 +00:00
optparse.py Update to Optik 1.4.1+: adds __all__ (Optik SF bug #728563). 2003-05-08 01:38:52 +00:00
os.py SF #764121, docstring for spawnlp incorrect 2003-07-02 02:49:33 +00:00
os2emxpath.py Migrate definitions of several platform-dependent path-related variables 2003-02-14 19:35:31 +00:00
pdb.doc
pdb.py Whitespace normalization. 2003-06-15 23:26:30 +00:00
pickle.py Fix grammar in comment. 2003-06-29 16:59:59 +00:00
pickletools.py dis(): Added an optional memo argument, so that multiple pickles in a 2003-02-05 19:55:53 +00:00
pipes.py
pkgutil.py
platform.py remove extra parameter from _java_getprop, remove duplicate imports 2003-06-29 04:17:45 +00:00
popen2.py Use Boolean values for the capturestderr flag. 2003-07-07 21:36:19 +00:00
poplib.py
posixfile.py
posixpath.py [ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX 2003-07-11 07:36:49 +00:00
pprint.py Revert 1.25, as overloaded __repr__ is not considered. 2003-06-07 20:47:37 +00:00
pre.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
profile.doc
profile.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
pstats.py - add a dump_stats() method similar to that of the profile.Profile class 2003-05-14 14:28:09 +00:00
pty.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
py_compile.py Getting rid of macfs. 2003-02-27 23:18:46 +00:00
pyclbr.py
pydoc.py (HTML|Text)Repr.repr1: Guard against objects whos types have no __name__ 2003-06-27 15:45:41 +00:00
Queue.py Add __all__ . 2003-07-01 05:34:27 +00:00
quopri.py
random.py SF bug #759889: Pickling of Random is broken 2003-06-24 20:29:04 +00:00
re.py Give people who run "pydoc re" a clue. 2003-01-31 00:35:58 +00:00
reconvert.py
regex_syntax.py
regsub.py
repr.py [680789] Debug with long array takes forever 2003-02-05 18:29:34 +00:00
rexec.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
rfc822.py
rlcompleter.py
robotparser.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
sched.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
sets.py Portion of SF patch #761104. Fixes a minor docstring error. 2003-06-26 18:49:28 +00:00
sgmllib.py Allow "@" in unquoted attribute values. 2003-04-29 22:12:55 +00:00
shelve.py Fixup bare try/except. 2003-05-27 06:30:52 +00:00
shlex.py - Changed shlex.split() method to have more useful and 2003-04-20 01:57:03 +00:00
shutil.py Fix SF bug #691276, shutil.copytree documentation bug 2003-02-23 21:36:32 +00:00
SimpleHTTPServer.py
SimpleXMLRPCServer.py whitespace normalization 2003-06-29 04:19:37 +00:00
site.py In an OSX framework build Python could fail if HOME wasn't set, fixed. 2003-06-03 10:55:35 +00:00
smtpd.py
smtplib.py
sndhdr.py
socket.py Always unwrap _socketobj in socket.ssl. Revert httplib.py 1.25. 2003-06-14 13:30:53 +00:00
SocketServer.py
sre.py Addendum to #764548: restore 2.1 compatibility. 2003-07-02 21:37:16 +00:00
sre_compile.py Addendum to #764548: restore 2.1 compatibility. 2003-07-02 21:37:16 +00:00
sre_constants.py Fully support 32-bit codes. Enable BIGCHARSET in UCS-4 builds. 2003-04-19 12:56:08 +00:00
sre_parse.py Patch #681152: Support escaped Unicode characters in classes. Fixes #612074. 2003-04-19 08:37:24 +00:00
stat.py
statcache.py
statvfs.py
string.py Attempt to make all the various string *strip methods the same. 2003-04-10 22:35:32 +00:00
StringIO.py Make StringIO its own iterator, similar to real files. 2003-01-31 16:04:15 +00:00
stringold.py
stringprep.py Whitespace normalization. 2003-04-24 16:02:54 +00:00
sunau.py
sunaudio.py
symbol.py
symtable.py
tabnanny.py
tarfile.py Fix by Lars Gustaebel for bug 721871: don't get upset if the prefix 2003-04-22 22:03:11 +00:00
telnetlib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
tempfile.py Getting rid of macfs. 2003-03-21 12:55:38 +00:00
TERMIOS.py
textwrap.py Update copyright dates. 2003-06-15 15:37:18 +00:00
this.py
threading.py Make the classes exposed by threading.py new-style classes. This is 2003-07-01 20:01:55 +00:00
timeit.py remove unused import math 2003-06-29 04:18:15 +00:00
toaiff.py
token.py
tokenize.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
trace.py Patch from Zooko to remove an experimental feature. 2003-07-07 16:08:47 +00:00
traceback.py
tty.py
types.py [ 683376 ] Adding NotImplementedType to types.py 2003-02-10 19:38:33 +00:00
tzparse.py
unittest.py SF bug #715145: unittest.py still uses != in failUnlessEqual 2003-04-04 22:56:42 +00:00
urllib.py More fixes according to SF 549151: 2003-05-16 01:46:51 +00:00
urllib2.py Patch 549151, rev4: redirect posts for 301 also. Will backport to 2.2. 2003-07-12 07:33:32 +00:00
urlparse.py Patch #712124: Remove obsolete comment. 2003-03-30 16:28:26 +00:00
user.py
UserDict.py SF patch #693753: fix for bug 639806: default for dict.pop 2003-03-06 23:54:28 +00:00
UserList.py SF #754014: list.index() should accept optional start, end arguments 2003-06-17 05:05:49 +00:00
UserString.py Attempt to make all the various string *strip methods the same. 2003-04-10 22:35:32 +00:00
uu.py
warnings.py Change warnings to avoid importing re module during startup. 2003-07-11 15:37:59 +00:00
wave.py
weakref.py SF 742860: WeakKeyDictionary __delitem__ uses iterkeys 2003-05-25 01:45:11 +00:00
webbrowser.py
whichdb.py patch #766650 - whichdb not identifying dbm DBs when dbm linked with gdbm 2003-07-11 12:16:48 +00:00
whrandom.py
xdrlib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
xmllib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
xmlrpclib.py Patch #764470: Fix marshalling of faults. Will backport to 2.2. 2003-07-12 07:53:04 +00:00
zipfile.py SF patch #756996: Bare except in ZipFile.testzip() 2003-06-27 22:25:03 +00:00