summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Test the applesingle decoder.Jack Jansen2003-11-181-0/+72
|
* Various fixups (most suggested by Armin Rigo).Raymond Hettinger2003-11-171-0/+25
|
* * Migrate set() and frozenset() from the sandbox.Raymond Hettinger2003-11-1613-40/+1209
| | | | | | | | * Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming.
* SF #841977 - modulefinder fails to find extension modules in packagesThomas Heller2003-11-141-1/+6
| | | | | | | | | | | The find_all_submodules() method in modulefinder only looks for *.py, *.pyc, and *.pyo files. Python extension modules are only found if they are referenced in import statements somewhere. This patch uses the actual list from imp.get_suffixes(). Backported myself.
* subtype_dealloc(): A more complete fix for critical bug 840829 +Tim Peters2003-11-131-0/+19
| | | | | | expanded the test case with a piece that needs the more-complete fix. I'll backport this to 2.3 maint.
* Patch #839877: Remove unused lambda expression.Martin v. Löwis2003-11-131-4/+0
|
* SF bug 840829: weakref callbacks and gc corrupt memory.Tim Peters2003-11-121-0/+20
| | | | | | | | | | | | | | | | | subtype_dealloc(): This left the dying object exposed to gc, so that if cyclic gc triggered during the weakref callback, gc tried to delete the dying object a second time. That's a disaster. subtype_dealloc() had a (I hope!) unique problem here, as every normal dealloc routine untracks the object (from gc) before fiddling with weakrefs etc. But subtype_dealloc has obscure technical reasons for re-registering the dying object with gc (already explained in a large comment block at the bottom of the function). The fix amounts to simply refraining from reregistering the dying object with gc until after the weakref callback (if any) has been called. This is a critical bug (hard to predict, and causes seemingly random memory corruption when it occurs). I'll backport it to 2.3 later.
* Improve backwards compatibility code to handle True/False.Raymond Hettinger2003-11-121-0/+4
|
* Improve the implementation of itertools.tee().Raymond Hettinger2003-11-121-24/+31
| | | | | | | | | | | Formerly, underlying queue was implemented in terms of two lists. The new queue is a series of singly-linked fixed length lists. The new implementation runs much faster, supports multi-way tees, and allows tees of tees without additional memory costs. The root ideas for this structure were contributed by Andrew Koenig and Guido van Rossum.
* Make Message.__str__ more efficient.Neil Schemenauer2003-11-111-4/+1
|
* Patch #798297: Add IMAP THREAD command.Martin v. Löwis2003-11-101-0/+11
|
* mktemp() shouldn't rely on os.path.exists(), which can return False ifGuido van Rossum2003-11-101-1/+23
| | | | | the file is a symlink. Instead, use os.lstat directly, if it exists; fall back on os.stat or the built-in open. Thanks to Iustin Pop.
* fixed wrong error checking on fcntl call as per SF bug # 821896Alex Martelli2003-11-091-2/+3
| | | | (same as commit of Sun Nov 2 to the release23-maint branch)
* fixed obvious bug in _send_header as per SF bug #831271Alex Martelli2003-11-091-2/+1
| | | | (same as commit of Sun Nov 2 to the release23-maint branch)
* Update test to handle list.__reversed__().Raymond Hettinger2003-11-081-0/+1
|
* SF bug #835457: Small typo in logging documentationRaymond Hettinger2003-11-081-1/+1
|
* Convert heapq.py to a C implementation.Raymond Hettinger2003-11-082-256/+0
|
* Overallocate target buffer for normalization more early. Fixes #834676.Martin v. Löwis2003-11-061-0/+3
| | | | Backported to 2.3.
* Implement and apply PEP 322, reverse iterationRaymond Hettinger2003-11-066-8/+24
|
* Add traceback.format_exc().Neil Schemenauer2003-11-052-7/+14
|
* * Use weakref's of DBCursor objects for the iterator cursors to avoid aGregory P. Smith2003-11-032-50/+121
| | | | | | | | | | memory leak that would've occurred for all iterators that were destroyed before having iterated until they raised StopIteration. * Simplify some code. * Add new test cases to check for the memleak and ensure that mixing iteration with modification of the values for existing keys works.
* SF patch #834015: Remove imports of unused modulesRaymond Hettinger2003-11-025-13/+8
| | | | (Contributed by George Yoshida.)
* * Fix the singlethreaded deadlocks occurring in the simple bsddb interface.Gregory P. Smith2003-11-022-8/+154
| | | | | * Add support for multiple iterator/generator objects at once on the simple bsddb _DBWithCursor interface.
* Patch #830858: Correct the number of is-functions. Backported to 2.3 and 2.2.Martin v. Löwis2003-10-311-0/+4
|
* Patch #531629: Add multicall support.Martin v. Löwis2003-10-311-1/+65
|
* Patch #785689: Use basename in usage. Backported to 2.3.Martin v. Löwis2003-10-311-1/+1
|
* Patch #: Add POP3 over SSL support.Martin v. Löwis2003-10-311-1/+89
|
* Update test to include "sorted" in dir(list).Raymond Hettinger2003-10-291-1/+2
|
* Add list.sorted() classmethod.Raymond Hettinger2003-10-292-0/+63
|
* SF #775057, fix IDLE problem in about dialogNeal Norwitz2003-10-281-1/+3
| | | | | If the file doesn't exist, the code to display an error message was broken Will backport.
* Fixed dis.disassemble_string().Armin Rigo2003-10-281-28/+24
| | | | | Added dis.findlinestarts(). SF bug 811294
* Deleting cyclic object comparison.Armin Rigo2003-10-284-69/+43
| | | | | SF patch 825639 http://mail.python.org/pipermail/python-dev/2003-October/039445.html
* Docstring fix: XHTML 1.0 entities are supportedAndrew M. Kuchling2003-10-271-3/+3
|
* Patch #817854: Add missing operations for SSLFile. Fixes #792101.Martin v. Löwis2003-10-271-0/+25
| | | | Backported to 2.3.
* Another instance of the same typo.Steve Purcell2003-10-261-2/+2
|
* Replace the window() example with pairwise() which demonstrates tee().Raymond Hettinger2003-10-261-13/+10
|
* Minor improvements to itertools.tee():Raymond Hettinger2003-10-261-0/+12
| | | | | | * tee object is no longer subclassable * independent iterators renamed to "itertools.tee_iterator" * fixed doc string typo and added entry in the module doc string
* Incorporated patch 819077, from George Yoshida:Steve Purcell2003-10-261-7/+6
| | | | | | | | | | | | | * Fixed typo in docstring for 'failUnlessAlmostEqual()' * Removed unnecessary use of 'float()' for time values. * Removed apparently unnecessary import of unittest. At some point in the distant past I believe it was necessary otherwise the 'TestCase' that a module saw was not the same as the 'TestCase' seen within 'unittest', and the user's TestCase subclasses were not recognised as subclasses of the TestCase seen within unittest. Seems not to be necessary now.
* Patch #812378: Normalize white space.Martin v. Löwis2003-10-241-3/+3
|
* [Bug #822668] tarfile raises an exception if the tarfile is gzipped and is ↵Andrew M. Kuchling2003-10-241-1/+1
| | | | too large; the gzip filesize should be written out mod 2**32. (Reported by Johan Fredrik Ohman)
* Fixed bug introduced in revision 1.27Armin Rigo2003-10-241-1/+1
|
* Fix a bug in the memory reallocation code of PyUnicode_TranslateCharmap().Walter Dörwald2003-10-241-0/+12
| | | | | | | charmaptranslate_makespace() allocated more memory than required for the next replacement but didn't remember that fact, so memory size was growing exponentially every time a replacement string is longer that one character. This fixes SF bug #828737.
* Added itertools.tee()Raymond Hettinger2003-10-241-61/+130
| | | | | | It works like the pure python verion except: * it stops storing data after of the iterators gets deallocated * the data queue is implemented with two stacks instead of one dictionary.
* Patch #813200: Quote executable path on Windows. Fixes #811082.Martin v. Löwis2003-10-231-2/+10
| | | | Backported to 2.3.
* Remove unneeded import.Guido van Rossum2003-10-221-1/+0
|
* Replace a reduce() with sum().Raymond Hettinger2003-10-221-3/+2
|
* Add docstringAndrew M. Kuchling2003-10-221-0/+4
|
* [Part of patch #648322] Delete the poll2() function, which uses a 'poll' ↵Andrew M. Kuchling2003-10-221-29/+4
| | | | extension module that was once part of Medusa. Contributed by Kjetil Jacobsen
* [Bug #758241] When you use asyncore with a non-default map, methodsAndrew M. Kuchling2003-10-221-2/+7
| | | | | | | | | | | of the dispatcher object break. e.g. if you close() the object, it tries to remove itself from the default map, not from the map the dispatcher was created with. The patch, from Stephane Ninin, records the map as an attribute of the dispatcher instance. 2.3 bugfix candidate.
* Apply patch 823328 -- support for rfc 2617 digestion authentication.Jeremy Hylton2003-10-211-44/+96
| | | | | | | | | | | | The patch was tweaked slightly. It's get a different mechanism for generating the cnonce which uses /dev/urandom when possible to generate less-easily-guessed random input. Also rearrange the imports so that they are alphabetical and duplicates are eliminated. Add a few XXX comments about things left undone and things that could be improved.