cpython/Lib
Tim Peters f6ed0740a8 This no longer leaks memory when run in an infinite loop. However,
that required explicitly calling LazyList.clear() in the two tests that
use LazyList (I added a LazyList Fibonacci generator too).

A real bitch:  the extremely inefficient first version of the 2-3-5 test
*looked* like a slow leak on Win98SE, but it wasn't "really":  it generated
so many results that the heap grew over 4Mb (tons of frames!  the number
of frames grows exponentially in that test).  Then Win98SE malloc() starts
fragmenting address space allocating more and more heaps, and the visible
memory use grew very slowly while the disk was thrashing like mad.
Printing fewer results (i.e., keeping the heap burden under 4Mb) made
that illusion vanish.

Looks like there's no hope for plugging the LazyList leaks automatically
short of adding frameobjects and genobjects to gc.  OTOH, they're very
easy to break by hand, and they're the only *kind* of plausibly realistic
leaks I've been able to provoke.

Dilemma.
2001-06-27 07:17:57 +00:00
..
compiler SF bug 430991: wrong co_lnotab 2001-06-09 09:26:21 +00:00
curses Bug #412086, reported by Peter Wilson: The _curses module doesn't 2001-04-05 16:08:41 +00:00
distutils - _filename_to_abs() didn't cater for .. components in the pathname. Fixed. 2001-06-19 21:23:11 +00:00
encodings This patch by Martin v. Loewis changes the UTF-16 codec to only 2001-06-19 20:07:51 +00:00
idlelib Initial revision 2001-06-25 07:23:57 +00:00
lib-old Remove all remaining uses of the FCNTL module from the standard library. 2001-05-10 15:33:31 +00:00
lib-tk The lower() and tkraise() methods were calling the Canvas widget 2001-04-10 21:13:06 +00:00
plat-aix3 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-aix4 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-beos5 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-freebsd2 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-freebsd3 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-freebsd4 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-freebsd5 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +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 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-irix6 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-linux1 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-linux2 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-netbsd1 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +00:00
plat-next3 Do no regenerate modules that should no longer be here. 2001-05-10 15:52:47 +00:00
plat-riscos Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger 2001-04-10 22:07:43 +00:00
plat-sunos4 Do no regenerate modules that should no longer be here. 2001-05-10 15:52:47 +00:00
plat-sunos5 Do no regenerate modules that should no longer be here. 2001-05-10 15:52:47 +00:00
plat-unixware7 Remove the old platform-specific FCNTL.py modules; these are no longer 2001-05-09 21:15:06 +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 This no longer leaks memory when run in an infinite loop. However, 2001-06-27 07:17:57 +00:00
xml Synchronize with 1.13 of PyXML: 2001-06-17 07:05:43 +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 Get rid of the superstitious "~" in dict hashing's "i = (~hash) & mask". 2001-05-13 00:19:31 +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 Merge my changes to the offending comment with Guido's changes. 2001-05-23 04:53:44 +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 Patch #413171: Implement get, setdefault, update in terms of 2001-06-18 01:09:41 +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 This patch changes the way the string .encode() method works slightly 2001-05-15 12:00:02 +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 Catch only the relevant exceptions instead of using a bare except clause. 2001-05-11 18:27:00 +00:00
asynchat.py Fix from the Madusa mailing list: 2001-04-08 07:23:44 +00:00
asyncore.py <socket>.getsockopt() and <socket>.setsockopt() can only raise socket.error, 2001-05-11 18:28:54 +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 check in for patch #430846 2001-06-07 18:56:13 +00:00
bdb.py Return self.trace_dispatch from dispatch_return() to enable stepping through generators. (An alternative would be to create a new "yield" debugger event, but that involves many more changes, and might break Bdb subclasses.) 2001-06-25 18:01:24 +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 added builtin b/w compat module. 1993-10-22 14:24:22 +00:00
calendar.py Application of patch #401842 by Denis S. Otkidach to support 2001-05-22 15:58:30 +00:00
cgi.py Add a whole lot of stuff to __all__. 2001-03-19 13:40:44 +00:00
chunk.py Clean up bare except: when determining whether a file is seekable. 2001-05-11 19:14:51 +00:00
cmd.py This is SF patch #405952, by Anthony Baxter: 2001-03-22 21:59:20 +00:00
code.py InteractiveInterpreter.showsyntaxerror(): 2001-05-03 04:58:49 +00:00
codecs.py Whitespace normalization. 2001-05-29 06:06:54 +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 Fix compileall.py so that it fails on SyntaxErrors 2001-04-18 01:20:21 +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 Fix bug #422702: Make flag argument to open optional, and document it that way. 2001-06-05 05:33:19 +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 Merging the gen-branch into the main line, at Guido's direction. Yay! 2001-06-18 22:08:13 +00:00
doctest.py Changed some comments. Removed the caution about clearing globs, since 2001-06-24 20:24:16 +00:00
dospath.py more __all__ updates 2001-01-20 23:34:12 +00:00
dumbdbm.py Added support for .__contains__(), .__iter__(), .iterkeys(). 2001-05-03 04:55:47 +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 Patch #409973: Speedup glob.glob, add fnmatch.filter. 2001-06-06 06:24:38 +00:00
formatter.py Remove a bare try/except completely -- it just did not make sense! 2001-05-11 19:25:08 +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 Patch #409973: Speedup glob.glob, add fnmatch.filter. 2001-06-06 06:24:38 +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 int() of a string is only expected to through ValueError, so do not use 2001-05-11 18:45:52 +00:00
httplib.py more public symbols for __all__ 2001-06-01 16:25:38 +00:00
ihooks.py String method conversion. 2001-02-09 10:18:37 +00:00
imaplib.py Somebody checked this in w/ an ambiguous tab/space mix (reported by 2001-06-18 23:56:36 +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 Merging the gen-branch into the main line, at Guido's direction. Yay! 2001-06-18 22:08:13 +00:00
keyword.py Updated keyword.py for "yield". 2001-06-19 00:26:25 +00:00
knee.py String method conversion. 2001-02-09 09:48:45 +00:00
linecache.py Patch from Gordon McMillan. 2001-05-29 04:27:01 +00:00
locale.py Implement Mark Favas's suggestion. There's a clear bug in _group(): 2001-04-16 16:04:10 +00:00
macpath.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
macstat.py * Lib/linecache.py: don't crash on empty filename 1994-08-23 13:32:20 +00:00
macurl2path.py String method conversion. 2001-02-09 09:48:45 +00:00
mailbox.py Make the Mailbox objects support iteration -- they already had the 2001-05-02 20:20:53 +00:00
mailcap.py Opening a file for reading can raise IOError, so only catch that. 2001-05-11 18:47:54 +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 Add .pyo as an extension, fixes bug #416462. Also restore alphabetic order. 2001-06-05 05:17:00 +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 Fix typo in attribute name (file should be filename) found by 2001-04-15 12:51:42 +00:00
nntplib.py String method conversion. 2001-02-09 07:02:17 +00:00
ntpath.py abspath(): Fix inconsistent indentation. 2001-05-15 15:23:01 +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 Untabified and applied Richard Wolff's changes (plus my own reflowing 1998-09-17 15:01:38 +00:00
pdb.py SF bug #131560: pdb imports 'repr', causing name collision 2001-02-09 23:28:07 +00:00
persist.py * ftplib.py: added abort() command (sends oob data). 1993-05-24 14:16:22 +00:00
pickle.py test_pickle works on sizeof(long)==8 boxes again. 2001-04-10 05:02:52 +00:00
pipes.py SF bug 418615: regular expression bug in pipes.py. 2001-04-25 03:43:14 +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 Remove all remaining uses of the FCNTL module from the standard library. 2001-05-10 15:33:31 +00:00
posixpath.py In walk(), don't die when os.lstat() raises os.error, e.g. because a 2001-04-16 18:12:04 +00:00
pprint.py pprint's workhorse _safe_repr() function took time quadratic in the # of 2001-05-14 18:39:41 +00:00
pre.py Clean up a bare except where we only expect to catch pcre.error. 2001-05-11 19:20:17 +00:00
profile.doc Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
profile.py An import MacOS was missing after the code-rearranging. Added. 2001-06-19 20:11:36 +00:00
pstats.py Patch #416220: Fix misplaced paren. 2001-06-07 05:49:05 +00:00
pty.py Whitespace normalization. 2001-05-29 06:06:54 +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 Change some text just a little to avoid font-lock hell. 2001-05-10 18:41:02 +00:00
quopri.py encode(): Fixed the handling of soft line breaks for lines over 76 2001-06-19 22:48:10 +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 Add sha and _sre to the list of allowed built-in modules. 2001-06-22 18:19:16 +00:00
rfc822.py Per discussion with Barry, make the default value for both get() and 2001-05-22 19:36:50 +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 parse_declaration(): be more lenient in what we accept. We now 2001-05-21 20:17:17 +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 Add new built-in 'help' which invokes pydoc.help (with a twist). 2001-06-12 16:48:52 +00:00
smtpd.py Fix typo in exception name (UnimplementedError should be 2001-04-15 13:06:04 +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 Fix three PyChecker-detected gotchas. 2001-04-16 18:43:18 +00:00
tabnanny.py Merging the gen-branch into the main line, at Guido's direction. Yay! 2001-06-18 22:08:13 +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 Merging the gen-branch into the main line, at Guido's direction. Yay! 2001-06-18 22:08:13 +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 Teach the types module about generators. Thanks to James Althoff on the 2001-06-25 19:46:25 +00:00
tzparse.py Add a deprecation warning to this module. 2001-03-20 18:36:48 +00:00
unittest.py patch 418489 from Andrew Dalke for string format bug 2001-05-10 01:28:40 +00:00
urllib.py Fix SF bug [ #416231 ] urllib.basejoin fails to apply some ../. 2001-04-15 20:47:33 +00:00
urllib2.py Raise useful exception when called with URL for which request type 2001-05-09 15:49:24 +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 Lawrence Kesteloot noted: Lib/user.py has a comment that says that the 2000-03-30 15:00:33 +00:00
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 Added iterator support to the Weak*Dictionary classes. 2001-05-02 05:43:09 +00:00
webbrowser.py _synthesize(): Helper function: when the users passes a specific 2001-04-12 22:07:27 +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 Fix one bare except: clause. 2001-05-11 19:52:57 +00:00