summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Backport from 2.3 trunk:Barry Warsaw2003-05-292-3/+7
| | | | | | | | _make_boundary(): Fix for SF bug #745478, broken boundary calculation in some locales. This code simplifies the boundary algorithm to use randint() which is what we wanted anyway. Bump package version to 2.5.3.
* Give the Windows socket wrapper function default values for its 'family'Tim Peters2003-05-291-1/+1
| | | | | | | | and 'type' arguments. This improves x-platform compatibility (e.g., on Unix systems socket() already supported these default arguments). No need to do anything here for 2.3 -- it already fixed this glitch in a different way.
* crash_in_get_sf736892(): A test of SF 736892, forcing function to actBarry Warsaw2003-05-291-0/+14
| | | | like an unbound method dumps core.
* Remove debug code from weakref_segfault().Guido van Rossum2003-05-291-3/+1
| | | | | Also move the call of the test to the top; the crash is caused by a double free.
* Add testcase for SF 742911.Guido van Rossum2003-05-291-0/+24
|
* The backport gets Fred's seal of approval:Barry Warsaw2003-05-282-5/+59
| | | | | | | | | | | | | | | | | | | SF 742860: WeakKeyDictionary __delitem__ uses iterkeys Someone review this, please! Final releases are getting close, Fred (the weakref guy) won't be around until Tuesday, and the pre-patch code can indeed raise spurious RuntimeErrors in the presence of threads or mutating comparison functions. See the bug report for my confusions: I can't see any reason for why __delitem__ iterated over the keys. The new one-liner implementation is much faster, can't raise RuntimeError, and should be better-behaved in all respects wrt threads. New tests test_weak_keyed_bad_delitem and test_weak_keyed_cascading_deletes fail before this patch. Backported the tests and the patch.
* Backport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, useJack Jansen2003-05-231-0/+3
| | | | -L in stead. Fixes #723495.
* Backport fix for SF bug 692776.Jeremy Hylton2003-05-221-0/+24
| | | | | | Add a tp_new slot to function objects that handles the case of a function requiring a closure. Put the function type in the new module, rather than having a function new.function(). Add tests.
* Backport Jeremy's fix: req.method should be req.get_method.Raymond Hettinger2003-05-221-6/+8
|
* Backport fix for SF bug #741171: pdb crashes when enabling a non-existing ↵Andrew M. Kuchling2003-05-221-2/+22
| | | | breakpoint
* Backport fix for SF bug 734869 and sundry compiler cleanups.Jeremy Hylton2003-05-222-0/+2
|
* GNUTranslations._parse(): Backport of fix for SF bug #658233, whereBarry Warsaw2003-05-201-6/+13
| | | | | | continuation lines in .po metadata caused a crash. Also, export more symbols from __all__.
* Patch #499513: use readline() instead of readlines(). Removed theMartin v. Löwis2003-05-201-16/+6
| | | | | | unnecessary redirection limit code which is already in FancyURLopener. Backport of 1.12.
* SF patch #497420 (Eduardo Pérez): ftplib: ftp anonymous passwordMartin v. Löwis2003-05-201-14/+9
| | | | | | | | Instead of sending the real user and host, use "anonymous@" (i.e. no host name at all!) as the default anonymous FTP password. This avoids privacy violations. Backport of 1.62, 1.63.
* minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.Samuele Pedroni2003-05-171-1/+2
|
* beefed up version: jython support, covers now fixed differences between ↵Samuele Pedroni2003-05-171-10/+103
| | | | CPython/Jython.
* Backport fix for compile_command("",symbol="eval") raising syntax error ↵Samuele Pedroni2003-05-161-1/+2
| | | | about "pass". Now returns None.
* Backporting email 2.5.2 fixes.Barry Warsaw2003-05-084-7/+20
|
* Backport better fix for newurl as suggested by Jim Jewett in SF bugJeremy Hylton2003-05-051-2/+2
| | | | #730963.
* Backport fix for SF #723831: urlopen() raises URLError.Jeremy Hylton2003-05-051-15/+17
|
* file_truncate(): Backported 2.3 code so that file.truncate(n) works onTim Peters2003-04-301-15/+30
| | | | | | Windows when n is too big to fit in a 32-bit int. This was a hole in 2.2's large file support on Windows, and turns out it's a bad hole at least for ZODB.
* Backport 1.157Raymond Hettinger2003-04-251-0/+4
| | | | | SF Patch 549151: urllib2 POSTs on redirect (contributed by John J Lee)
* Backport 1.157 and 1.39Raymond Hettinger2003-04-251-4/+34
| | | | | SF Patch 549151: urllib2 POSTs on redirect (contributed by John J Lee)
* Backport 1.18:Raymond Hettinger2003-04-251-3/+4
| | | | | | | SF bug 557704: netrc module can't handle all passwords Let netrc handle entries with login fields (mail servers for instance) by having login default to ''.
* Fix documentation errors in regards to urlretrieve() and local files.Brett Cannon2003-04-241-1/+1
| | | | Also fix typos in urllib lib doc.
* Backport 1.17 adding punctuation as allowable charactersRaymond Hettinger2003-04-231-2/+1
|
* Patch #681152: Support escaped unicode characters in classes. Fixes 612074.Martin v. Löwis2003-04-192-1/+5
|
* Backport:Neal Norwitz2003-04-112-12/+15
| | | | | | | | | | | Fix SF bug #697220, string.strip implementation/doc mismatch Attempt to make all the various string/unicode *strip methods the same. * Doc - add doc for when functions were added * UserString * string/unicode object methods * string module functions 'chars' is used for the last parameter everywhere.
* Fixed the gc-vs-__del__ bugs for new-style classes. That's it for this one.Tim Peters2003-04-081-0/+44
|
* Backporting new gc-vs-__del__ tests. These pass, but are restrictedTim Peters2003-04-081-0/+53
| | | | to old-style classes. New-style classes remain vulnerable in 2.2.
* Backporting:Barry Warsaw2003-04-042-5/+12
| | | | | typed_subpart_iterator(): Fix these to use non-deprecated APIs, i.e. get_content_maintype() and get_content_subtype().
* Backporting email 2.5.1 patches.Barry Warsaw2003-04-041-1/+1
|
* Backporting:Barry Warsaw2003-04-041-3/+3
| | | | | | | | revision 1.27 date: 2003/03/30 20:46:47; author: bwarsaw; state: Exp; lines: +3 -3 __unicode__(): Fix the logic for calculating whether to add a separating space or not between encoded chunks. Closes SF bug #710498.
* This was failing on Windows, due to various attempts to delete filesTim Peters2003-03-311-10/+5
| | | | | that were still open. Made the tail end of the test look more like the CVS head version.
* backport test skip for test_locale on Mac OS XSkip Montanaro2003-03-312-1/+4
|
* backport largefile resource requirement for Mac OSXSkip Montanaro2003-03-311-5/+5
|
* SF patch #706338, Fix a few broken links in pydoc by Greg ChapmanNeal Norwitz2003-03-301-4/+4
|
* Patch #707701: Expect '??' in events. Fixes #698517.Martin v. Löwis2003-03-291-16/+32
|
* backport fix for missing altsep in nt (bug 709428)Skip Montanaro2003-03-281-0/+1
|
* Backporting email 2.5 to Python 2.2 maint branch.Barry Warsaw2003-03-2115-329/+819
|
* SF bug 705836: struct.pack of floats in non-native endian orderTim Peters2003-03-201-0/+46
| | | | | | | | | | pack_float, pack_double, save_float: All the routines for creating IEEE-format packed representations of floats and doubles simply ignored that rounding can (in rare cases) propagate out of a long string of 1 bits. At worst, the end-off carry can (by mistake) interfere with the exponent value, and then unpacking yields a result wrong by a factor of 2. In less severe cases, it can end up losing more low-order bits than intended, or fail to catch overflow *caused* by rounding.
* This commit was manufactured by cvs2svn to create branchcvs2svn2003-03-176-0/+864
| | | | 'release22-maint'.
* binascii_a2b_base64: Properly return an empty string if the input was allThomas Wouters2003-03-171-0/+4
| | | | | | | invalid, rather than returning a string of random garbage of the estimated result length. Closes SF patch #703471 by Hye-Shik Chang. Backport from 2.3.
* [Backport patch #649762] Fix for asynchat endless loopAndrew M. Kuchling2003-03-121-1/+1
| | | | | | When the null string is used as the terminator, it used to be the same as None, meaning "collect all the data". In the current code, however, it falls into an endless loop; this change reverts to the old behavior.
* - Backported SF patch #676342: after using pdb, the readline commandGuido van Rossum2003-03-011-9/+15
| | | | completion was botched.
* Backport rev. 1.73: Translate spaces in the machine name to underscoresAndrew M. Kuchling2003-02-261-2/+3
|
* Backport:Guido van Rossum2003-02-242-1/+2
| | | | | | | | | | Fix from SF patch #633359 by Greg Chapman for SF bug #610299: The problem is in sre_compile.py: the call to _compile_charset near the end of _compile_info forgets to pass in the flags, so that the info charset is not compiled with re.U. (The info charset is used when searching to find the first character at which a match could start; it is not generated for patterns beginning with a repeat like '\w{1}'.)
* Backport 1.38:Raymond Hettinger2003-02-211-2/+3
| | | | | | | | | | | | | | | Fix an old bug in poll(). When a signal is handled while we're blocked in select(), this will raise select.error with errno set to EINTR. The except clauses correctly ignores this error, but the rest of the logic will then call read() for all objects in select's *input* list of read file descriptors. Then when an object's read_handler() is naive, it will call recv() on its socket, which will raise an IOError, and then asyncore decides to close the socket. To fix this, we simply return in this case. Backport candidate. Backport 1.40: Fix spelling error
* Spelling errorRaymond Hettinger2003-02-211-1/+1
|
* Backport SF #660455 fix.Guido van Rossum2003-02-121-0/+4
|