summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* The cheery optimism of old age.Tim Peters2006-05-271-13/+1
|
* Always close BZ2Proxy object. Remove unnecessary struct usage.Georg Brandl2006-05-271-13/+10
|
* More random thrashing trying to understand spuriousTim Peters2006-05-271-1/+13
| | | | Windows failures. Who's keeping a bz2 file open?
* Conversion of exceptions over from faked-up classes to new-style C types.Richard Jones2006-05-277-100/+94
|
* Fix up struct docstrings, add struct.pack_to function for symmetryBob Ippolito2006-05-272-0/+34
|
* Patch 1494554: Update numeric properties to Unicode 4.1.Martin v. Löwis2006-05-271-2/+2
|
* enable all of the struct tests, use ssize_t, fix some whitespaceBob Ippolito2006-05-261-1/+1
|
* added rpartition method to UserString classFredrik Lundh2006-05-261-1/+4
|
* needspeed: rpartition documentation, tests, and a bug fixes.Fredrik Lundh2006-05-261-2/+17
| | | | feel free to add more tests and improve the documentation.
* Need for speed: Patch #921466 : sys.path_importer_cache is now used to cache ↵Georg Brandl2006-05-261-2/+4
| | | | | | | | | | valid and invalid file paths for the built-in import machinery which leads to fewer open calls on startup. Also fix issue with PEP 302 style import hooks which lead to more open() calls than necessary.
* Test for more edge strip cases; leading and trailing separator gets removedAndrew Dalke2006-05-261-0/+2
| | | | even with strip(..., 0)
* Fix distutils so that libffi will cross-compile between darwin/x86 and ↵Bob Ippolito2006-05-261-4/+2
| | | | darwin/ppc
* Explicitly close files. I'm trying to stop the frequent spurious test_tarfileTim Peters2006-05-261-9/+32
| | | | | | failures on Windows buildbots, but it's hard to know how since the regrtest failure output is useless here, and it never fails when a buildbot slave runs test_tarfile the second time in verbose mode.
* Use open() to open files (was using file()).Tim Peters2006-05-261-10/+10
|
* fix #1229380 No struct.pack exception for some out of range integersBob Ippolito2006-05-261-3/+5
|
* Added more rstrip tests, including for prealloc'ed arraysAndrew Dalke2006-05-261-1/+54
|
* quick hack to fix busted binhex testBob Ippolito2006-05-261-1/+5
|
* Test cases for off-by-one errors in string split with multicharacter pattern.Andrew Dalke2006-05-261-0/+2
|
* I like tests.Andrew Dalke2006-05-261-0/+32
| | | | | | | The new split functions use a preallocated list. Added tests which exceed the preallocation size, to exercise list appends/resizes. Also added more edge case tests.
* Whitespace normalization.Tim Peters2006-05-261-2/+1
|
* Support for buffer protocol for socket and struct.Martin Blais2006-05-263-27/+97
| | | | | | | | | | * Added socket.recv_buf() and socket.recvfrom_buf() methods, that use the buffer protocol (send and sendto already did). * Added struct.pack_to(), that is the corresponding buffer compatible method to unpack_from(). * Fixed minor typos in arraymodule.
* Add "partition" to UserString.Georg Brandl2006-05-261-0/+1
|
* Added split whitespace checks for characters other than space.Andrew Dalke2006-05-261-0/+1
|
* Added a few more test cases for whitespace split. These strings have ↵Andrew Dalke2006-05-261-0/+7
| | | | leading whitespace.
* needforspeed: partition implementation, part two.Fredrik Lundh2006-05-261-0/+15
| | | | feel free to improve the documentation and the docstrings.
* Without this patch OSX users couldn't add new help sources because the codeRonald Oussoren2006-05-261-0/+1
| | | | tried to update one item in a tuple.
* Whitespace normalization.Tim Peters2006-05-251-2/+2
|
* Change test_values so that it compares the lowercasing of group names since ↵Brett Cannon2006-05-251-1/+4
| | | | | | getgrall() can return all lowercase names while getgrgid() returns proper casing. Discovered on Ubuntu 5.04 (custom).
* Guard the _active.remove() call to avoid errors when there is no _active list.Georg Brandl2006-05-251-2/+3
|
* needforspeed: check for overflow in replace (from Andrew Dalke)Fredrik Lundh2006-05-251-9/+8
|
* Added tests for implementation error we came up with in the need for speed ↵Andrew Dalke2006-05-251-0/+19
| | | | sprint.
* Update graminit.c for the fix for #1488915, Multiple dots in relative importThomas Wouters2006-05-251-1/+10
| | | | statement raise SyntaxError, and add testcase.
* Heavily fiddled variant of patch #1442927: PyLong_FromString optimization.Tim Peters2006-05-241-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``long(str, base)`` is now up to 6x faster for non-power-of-2 bases. The largest speedup is for inputs with about 1000 decimal digits. Conversion from non-power-of-2 bases remains quadratic-time in the number of input digits (it was and remains linear-time for bases 2, 4, 8, 16 and 32). Speedups at various lengths for decimal inputs, comparing 2.4.3 with current trunk. Note that it's actually a bit slower for 1-digit strings: len speedup ---- ------- 1 -4.5% 2 4.6% 3 8.3% 4 12.7% 5 16.9% 6 28.6% 7 35.5% 8 44.3% 9 46.6% 10 55.3% 11 65.7% 12 77.7% 13 73.4% 14 75.3% 15 85.2% 16 103.0% 17 95.1% 18 112.8% 19 117.9% 20 128.3% 30 174.5% 40 209.3% 50 236.3% 60 254.3% 70 262.9% 80 295.8% 90 297.3% 100 324.5% 200 374.6% 300 403.1% 400 391.1% 500 388.7% 600 440.6% 700 468.7% 800 498.0% 900 507.2% 1000 501.2% 2000 450.2% 3000 463.2% 4000 452.5% 5000 440.6% 6000 439.6% 7000 424.8% 8000 418.1% 9000 417.7%
* Disable the damn empty-string replace test -- it can'tTim Peters2006-05-241-2/+2
| | | | | be make to pass now for unicode if it passes for str, or vice versa.
* Whitespace normalization.Tim Peters2006-05-241-2/+2
|
* We can't leave the checked-in tests broken.Tim Peters2006-05-241-5/+10
|
* Added a slew of test for string replace, based various corner cases fromAndrew Dalke2006-05-241-0/+157
| | | | | | | | | | the Need For Speed sprint coding. Includes commented out overflow tests which will be uncommented once the code is fixed. This test will break the 8-bit string tests because "".replace("", "A") == "" when it should == "A" We have a fix for it, which should be added tomorrow.
* refactor unpack, add unpack_fromBob Ippolito2006-05-242-0/+53
|
* Whitespace normalization.Tim Peters2006-05-233-7/+6
|
* test_struct grew weird behavior under regrtest.py -R,Tim Peters2006-05-231-0/+2
| | | | | due to a module-level cache. Clearing the cache should make it stop showing up in refleak reports.
* patch #1493701: performance enhancements for struct moduleBob Ippolito2006-05-231-0/+76
|
* revert #1493701Bob Ippolito2006-05-231-76/+0
|
* Patch #1493701: performance enhancements for struct module.Bob Ippolito2006-05-231-0/+76
|
* Bug #1334662 / patch #1335972: int(string, base) wrong answers.Tim Peters2006-05-231-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In rare cases of strings specifying true values near sys.maxint, and oddball bases (not decimal or a power of 2), int(string, base) could deliver insane answers. This repairs all such problems, and also speeds string->int significantly. On my box, here are % speedups for decimal strings of various lengths: length speedup ------ ------- 1 12.4% 2 15.7% 3 20.6% 4 28.1% 5 33.2% 6 37.5% 7 41.9% 8 46.3% 9 51.2% 10 19.5% 11 19.9% 12 23.9% 13 23.7% 14 23.3% 15 24.9% 16 25.3% 17 28.3% 18 27.9% 19 35.7% Note that the difference between 9 and 10 is the difference between short and long Python ints on a 32-bit box. The patch doesn't actually do anything to speed conversion to long: the speedup is due to detecting "unsigned long" overflow more quickly. This is a bugfix candidate, but it's a non-trivial patch and it would be painful to separate the "bug fix" from the "speed up" parts.
* Patch #1488098.Ronald Oussoren2006-05-233-2/+125
| | | | | | This patchs makes it possible to create a universal build on OSX 10.4 and use the result to build extensions on 10.3. It also makes it possible to override the '-arch' and '-isysroot' compiler arguments for specific extensions.
* Disable linking extensions with -lpython2.5 for darwin. This should fix bugRonald Oussoren2006-05-231-0/+5
| | | | #1487105.
* Apply revised patch for GzipFile.readline performance #1281707Bob Ippolito2006-05-221-16/+21
|
* Revert gzip readline performance patch #1281707 until a more generic ↵Bob Ippolito2006-05-221-28/+20
| | | | performance improvement can be found
* GzipFile.readline performance improvement (~30-40%), patch #1281707Bob Ippolito2006-05-221-20/+28
|
* Whitespace normalization.Tim Peters2006-05-191-1/+1
|