summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* SF Bug #215126: Over restricted type checking on eval() functionRaymond Hettinger2004-07-022-11/+55
| | | | | | The builtin eval() function now accepts any mapping for the locals argument. Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing down the normal case. My timings so no measurable impact.
* Committing Tim's patch for SF bug #983585:Fred Drake2004-07-011-2/+1
| | | | test_repr() fails with id() values that appear negative
* FixMichael W. Hudson2004-07-011-39/+44
| | | | | | | | [ 924301 ] A leak case with cmd.py & readline & exception by ensuring that the readline completion function is always reset even in the case of an exception being raised. As a bonus, this makes the documentation for pre & postloop accurate again.
* fix small consistency nitFred Drake2004-07-011-1/+1
|
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-011-0/+1
|
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-0133-1/+27038
|
* Check in the updated version of patch #957240, which doesn't relyMichael W. Hudson2004-06-301-3/+10
| | | | on the marshalling characteristics of infinities.
* [Bug #912845] urllib2 only checks for a 200 return code, but 206 is also ↵Andrew M. Kuchling2004-06-291-2/+2
| | | | | | legal if a Range: header was supplied. (Actually, should the first 'if' statement be modified to allow any 2xx status code?)
* Remove unused import. (If it's there for some deep, dark reason, it should ↵Andrew M. Kuchling2004-06-291-1/+0
| | | | have been commented.)
* Add test case for bug #912845: requesting an HTTP byte range doesn't workAndrew M. Kuchling2004-06-291-6/+16
|
* Docstring grammar fixAndrew M. Kuchling2004-06-291-1/+1
|
* rsync is now a recognized protocol that uses "netloc" (i.e. specifies a networkBrett Cannon2004-06-291-1/+1
| | | | | | location) in its addressing. Closes bug #981299.
* Patch from Mark Hammond to fix a test error.Raymond Hettinger2004-06-281-9/+12
| | | | Now runs without exception on WinME/98.
* Adds support for DB.pget and DBCursor.pget methods.Gregory P. Smith2004-06-282-0/+27
| | | | | Based on a patch supplied by Ian Ward <ian@arevco.ca> on the pybsddb mailing list 2004-03-26.
* Added socket.getservbyport(), and make its second argument and that ofBarry Warsaw2004-06-281-10/+22
| | | | getservbyname() optional. Update the tests and the docs.
* SF patch / bug #967763Gregory P. Smith2004-06-271-0/+9
| | | | | | | | | | | | Fix memory leaks revealed by valgrind and ensuing code inspection. In the existing test suite valgrind revealed two memory leaks (DB_get and DBC_set_range). Code inspection revealed that there were many other potential similar leaks (many on odd code error paths such as passing something other than a DBTxn object for a txn= parameter or in the face of an out of memory error). The most common case that would cause a leak was when using recno or queue format databases with integer keys, sometimes only with an exception exit.
* Fix SF bug # 897820 - we can no longer use the DB_TRUNCATE flag whenGregory P. Smith2004-06-271-6/+11
| | | | | | opening the DB to implement legacy interface flag='n' support as BerkeleyDB 4.2.52 no longer allows it in transaction protected environments. Do the os.unlink ourselves.
* * Silence a test failure that resulted when test_site was run byRaymond Hettinger2004-06-271-7/+10
| | | | | | | | | | regrtest.py after it ran test_frozen. This test was really only designed to be run immediately after startup. Afterwards, other modules could be loaded when had not been fixed-up by site.py Took the chicken way out and only tested those modules known to be imported by site.py. * Normalized whitespace.
* remove debugging printSkip Montanaro2004-06-261-1/+0
|
* Allow classes from other modules to be specified at startup. For example,Skip Montanaro2004-06-261-2/+9
| | | | | | using the postfixproxy module from Spambayes you might start smtpd up like smtpd.py -c spambayes.postfixproxy.SpambayesProxy :8025 :8026
* Massive performance improvement for C extension and builtin tracing codeNicholas Bastin2004-06-251-3/+3
|
* Make distutils "install --home" support all platforms.Fred Drake2004-06-252-17/+72
|
* add boilerplate so the test modules can be run as scriptsFred Drake2004-06-253-1/+9
|
* Install two code generation optimizations that depend on NOP.Raymond Hettinger2004-06-211-0/+1
| | | | Reduces the cost of "not" to almost zero.
* add a couple of tests for the build_scripts commandFred Drake2004-06-211-0/+74
|
* Patch #975885: print file name in err msg in quiet modeMartin v. Löwis2004-06-201-0/+2
|
* Improve the documented advice on how to best use heapq.heapreplace().Raymond Hettinger2004-06-201-1/+3
|
* Bug 975996: Add _PyTime_DoubleToTimet to C APITim Peters2004-06-202-0/+35
| | | | | | | | | | | New include file timefuncs.h exports private API function _PyTime_DoubleToTimet() from timemodule.c. timemodule should export some other functions too (look for painful bits in datetimemodule.c). Added insane-argument checking to datetime's assorted fromtimestamp() and utcfromtimestamp() methods. Added insane-argument tests of these to test_datetime, and insane-argument tests for ctime(), localtime() and gmtime() to test_time.
* shutil.move() will raise an exception when trying to move a directory intoBrett Cannon2004-06-192-2/+20
| | | | | | itself. Closes bug #919012 . Thanks Johannes Gijsbers.
* Added normalization for Windows system name. Closes SF #945665.Marc-André Lemburg2004-06-191-1/+6
|
* Change pydoc.stripid() be able to match against 64-bit addresses by havingBrett Cannon2004-06-191-1/+1
| | | | regex match from 6 to 16 characters.
* pydoc.stripid() is now case-insensitive for its regex to support platforms thatBrett Cannon2004-06-191-6/+6
| | | | | | have pointer addresses in uppercase. Closes bug #934282. Thanks Robin Becker.
* fix typoFred Drake2004-06-181-1/+1
|
* If self.packages is None (this can happen, I saw it), returnSjoerd Mullender2004-06-181-0/+2
| | | | immediately (since None is not a sequence you can iterate over).
* Rebuild the wininst.exe files.Thomas Heller2004-06-182-0/+0
|
* fix bug: list of data files was initialized too soon in build_pyFred Drake2004-06-172-1/+51
|
* move support code to a helper module to ease re-useFred Drake2004-06-172-34/+48
|
* Reverse argument order for nsmallest() and nlargest().Raymond Hettinger2004-06-152-5/+5
| | | | Reads better when the iterable is a generator expression.
* add a test that actually installs some scriptsFred Drake2004-06-151-0/+56
|
* One unit test for distutils is not much, but is more than we had yesterday.Fred Drake2004-06-153-0/+98
| | | | We need to write more; hopefully the barrier is a little lower now.
* SF bug #973092: inspect.getframeinfo bug if 'context' is to bigRaymond Hettinger2004-06-151-1/+1
| | | | Make sure the start argument is not negative.
* Patch #826074: cmath.log optional base argument, fixes #823209Raymond Hettinger2004-06-141-2/+19
| | | | (Contributed by Andrew Gaul.)
* Back out #957240.Martin v. Löwis2004-06-141-3/+2
|
* Apply heapq.nlargest() to find best matches.Raymond Hettinger2004-06-131-2/+4
|
* Add heapq to list of __all__ checks.Raymond Hettinger2004-06-131-0/+1
|
* Install C version of heapq.nsmallest().Raymond Hettinger2004-06-132-7/+20
|
* note a really bad test (no time to fix now)Michael W. Hudson2004-06-121-0/+1
|
* Improve the memory performance and speed of heapq.nsmallest() by usingRaymond Hettinger2004-06-122-0/+24
| | | | | an alternate algorithm when the number of selected items is small relative to the full iterable.
* Add support for package data.Fred Drake2004-06-112-0/+52
| | | | | | | This is basically the support for package data from Phillip Eby's setuptools package. I've changed it only to fit it into the core implementation rather than to live in subclasses, and added documentation.
* lightly modified version of my patchMichael W. Hudson2004-06-111-24/+31
| | | | | | [ 971323 ] make test_signal less annoying after some comments on IRC from a highly opinionated australian who wishes to remain anonymous.