summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* This is my patch:Michael W. Hudson2005-05-271-0/+110
| | | | | | | | | | | | | | [ 1181301 ] make float packing copy bytes when they can which hasn't been reviewed, despite numerous threats to check it in anyway if noone reviews it. Please read the diff on the checkin list, at least! The basic idea is to examine the bytes of some 'probe values' to see if the current platform is a IEEE 754-ish platform, and if so _PyFloat_{Pack,Unpack}{4,8} just copy bytes around. The rest is hair for testing, and tests.
* Fix test_site to not call open('...', 'wU'), as that now raises an error.Michael W. Hudson2005-05-271-1/+1
| | | | Is anyone running the test suite regularly at the moment?
* Disallow opening files with modes 'aU' or 'wU' as specified by PEPSkip Montanaro2005-05-201-0/+10
| | | | 278. Closes bug 967182.
* Whitespace normalization.Tim Peters2005-05-181-1/+1
|
* This test relied on short-circuiting details of dictobject.py to avoidArmin Rigo2005-05-151-4/+2
| | | | | | | | | crashing, and indirectly on the fact that hash codes in random.randrange(1000000000) were very unlikely to exhibit collisions. To see the problem, replace this number with 500 and observe the crash on either del target[key] or del keys[i]. The fix prevents recursive mutation, just as in the key insertion case.
* Add better datetime support to xmlrpclib module. Closes patch #1120353.Skip Montanaro2005-05-142-17/+87
|
* Improve subprocess link error notificationKurt B. Kaiser2005-05-103-3/+9
| | | | | | M NEWS.txt M PyShell.py M rpc.py
* SF bug #1193890: calendar.weekheader not found in __all__Raymond Hettinger2005-05-101-1/+2
|
* Use Queue's blocking feature instead of sleeping in the mainKurt B. Kaiser2005-05-052-2/+4
| | | | loop. Patch # 1190163 Michiel de Hoon
* Don't use 'is not' to compare strings.Michael W. Hudson2005-05-041-1/+1
| | | | (spotted by reading pypy-svn :)
* SF patch #1191489: Simplify logic in random.pyRaymond Hettinger2005-04-301-9/+10
|
* Fix error in a docstring where a single quote started the docstring but tripleBrett Cannon2005-04-301-1/+1
| | | | | | quote ended it. Closes bug #1192777. Thanks Christopher Smith.
* Fixed a typo in docstring I happened upon.Guido van Rossum2005-04-301-1/+1
|
* Make subclasses of int, long, complex, float, and unicode perform typeBrett Cannon2005-04-264-1/+245
| | | | | | | conversion using the proper magic slot (e.g., __int__()). Also move conversion code out of PyNumber_*() functions in the C API into the nb_* function. Applied patch #1109424. Thanks Walter Doewald.
* Make parse_makefile fallback to environment variables if nothing isMartin v. Löwis2005-04-251-21/+14
| | | | | defined in the makefile. Get CFLAGS from the Makefile, instead of getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.
* Introduced EXTRA_CFLAGS as an environment variable used by the Makefile. MeantBrett Cannon2005-04-241-3/+4
| | | | | | | to be used for flags that change binary compatibility. Distutils was tweaked to also use the variable if used during compilation of the interpreter.
* Update test to the current readline() behaviour.Walter Dörwald2005-04-211-0/+2
|
* Fix comment.Walter Dörwald2005-04-211-2/+2
|
* If the data read from the bytestream in readline() ends in a '\r' read one moreWalter Dörwald2005-04-211-12/+4
| | | | | | | | | | | byte, even if the user has passed a size parameter. This extra byte shouldn't cause a buffer overflow in the tokenizer. The original plan was to return a line ending in '\r', which might be recognizable as a complete line and skip any '\n' that was read afterwards. Unfortunately this didn't work, as the tokenizer only recognizes '\n' as line ends, which in turn lead to joined lines and SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It can only happen with a temporarily exhausted bytestream now anyway.) Fixes parts of SF bugs #1163244 and #1175396.
* Fix tests dependent on the exception raised by non-settable descriptors.Barry Warsaw2005-04-203-5/+6
|
* Whitespace normalization.Tim Peters2005-04-202-2/+2
|
* typo fix, thanks Jeremy SandersAnthony Baxter2005-04-151-1/+1
|
* Flush out support for ``class B(): pass`` syntax by adding support to theBrett Cannon2005-04-093-1/+9
| | | | | | 'parser' module and 'compiler' package. Closes patch #1176012. Thanks logistix.
* Add test for ``class B1(): pass``.Brett Cannon2005-04-091-1/+2
|
* test_default_encoding_issues(): Fully restore sys.setdefaultencoding.Tim Peters2005-04-081-0/+7
| | | | | | | | | | test_site often failed under "regrtest.py -r", because this xmlrpc test left sys with a setdefaultencoding attribute, but loading site.py removes that attribute and test_site.py verifies the attribute is gone. Changed this test to get rid of sys.setdefaultencoding if it didn't exist when this test started. Don't know whether this is a bugfix (backport) candidate.
* SF bug #1168983: ftplib.py string index out of rangeRaymond Hettinger2005-04-051-7/+16
| | | | | | | | * resp[:1] in '123' # after Py2.2, this allowed blank responses to pass. * replace <> with != * provide a usage message for empty command line calls Backport candidate.
* Fix typos.Walter Dörwald2005-04-041-2/+2
|
* Fix for SF bug #1175396: readline() will now read one more character, ifWalter Dörwald2005-04-042-9/+91
| | | | | | | | | | | | the last character read is "\r" (and size is None, i.e. we're allowed to call read() multiple times), so that we can return the correct line ending (this additional character might be a "\n"). If the stream is temporarily exhausted, we might return the wrong line ending (if the last character read is "\r" and the next one (after the byte stream provides more data) is "\n", but at least the atcr member ensure that we get the correct number of lines (i.e. this "\n" will not be treated as another line ending.)
* Fix testcase for 64bit BSD systems: long is 8 bytes for those systemsHye-Shik Chang2005-04-041-2/+8
| | | | so there's no need to pad after off_t members. And a small typo fix.
* Added threadName and now using re-entrant lockVinay Sajip2005-03-311-2/+5
|
* Since PyPI only accepts UTF-8 encoded data now, make sure that the data isWalter Dörwald2005-03-311-2/+2
| | | | properly encoded and include the encoding in the Content-Type header.
* Fix for rather inaccurately titled bugMichael W. Hudson2005-03-301-0/+10
| | | | | | | | | [ 1165306 ] Property access with decorator makes interpreter crash Don't allow the creation of unbound methods with NULL im_class, because attempting to call such crashes. Backport candidate.
* SF patch 1167316: doctest.py fails self-test if run directly.Tim Peters2005-03-281-5/+5
| | | | | | Patch by Ilya Sandler. Bugfix candidate.
* Whitespace normalization.Tim Peters2005-03-2813-29/+27
|
* Two lines in this file had unbalanced parentheses -- couldn't possiblyTim Peters2005-03-281-2/+2
| | | | | | | work (SyntaxErrors at compile time). I slammed in what looked like the obvious fixes, but someone who understands this file should check my work.
* SF patch #1171417: bug fix for islice() in docsRaymond Hettinger2005-03-271-0/+5
|
* * Fix decimal's handling of foreign types. Now returns NotImplementedRaymond Hettinger2005-03-272-11/+89
| | | | | | | instead of raising a TypeError. Allows other types to successfully implement __radd__() style methods. * Remove future division import from test suite. * Remove test suite's shadowing of __builtin__.dir().
* SF bug #1770766: weakref proxy has incorrect __nonzero__ behavior.Raymond Hettinger2005-03-271-0/+6
|
* Add missing socket importMartin v. Löwis2005-03-241-0/+1
|
* minor cleanupFred Drake2005-03-241-7/+6
|
* Make SRPMs pyversion 'any'.Martin v. Löwis2005-03-231-1/+1
|
* Make dist_files a triple, with the Python target version included,Martin v. Löwis2005-03-236-14/+38
| | | | so that bdist_wininst can specify 'any'.
* Make the signature detached.Martin v. Löwis2005-03-221-1/+1
|
* Add tests for tuple, list and UserList that initialize the object fromWalter Dörwald2005-03-222-83/+97
| | | | | | various iterables. (Copied from test_deque.py as suggested by Jim Jewett in SF bug #1166274)
* Fix registration of output file.Martin v. Löwis2005-03-221-1/+1
|
* Don't set the Python version for sdist uploads.Martin v. Löwis2005-03-221-0/+2
|
* Upload GPG signature.Martin v. Löwis2005-03-221-3/+16
|
* Fix typo.Walter Dörwald2005-03-221-1/+1
|
* fix Python style guide conformanceFred Drake2005-03-221-1/+1
|
* Add list tests that ensure that remove() removes the first occurrence.Walter Dörwald2005-03-211-0/+20
| | | | (Copied from test_deque.py as suggested by Jim Jewett in SF bug #1166274)