summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* fix typoFred Drake2008-03-041-1/+1
|
* Close the file before trying to remove the directory so it works on Windows.Neal Norwitz2008-03-041-1/+2
| | | | As reported by Trent Nelson on python-dev.
* Beef-up docs and tests for itertools. Fix-up end-case for product().Raymond Hettinger2008-03-041-6/+112
|
* Issue 2226: Callable checked for the wrong abstract method.Raymond Hettinger2008-03-031-1/+1
|
* Remove dependency on itertools -- a simple genexp suffices.Raymond Hettinger2008-03-031-2/+2
|
* Actually import itertools.Georg Brandl2008-03-031-0/+1
|
* 15 -> 16, the 2ndGeorg Brandl2008-03-031-1/+1
|
* 15 -> 16Christian Heimes2008-03-031-2/+2
|
* Since abc._Abstract was replaces by a new type flags the regression test ↵Christian Heimes2008-03-033-4/+16
| | | | suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too?
* Add test_main() functions to various tests where it was simple to do. Done soBrett Cannon2008-03-039-36/+63
| | | | | that regrtest can execute the test_main() directly instead of relying on import side-effects.
* Add a note in the main test class' docstring that the order of execution of theBrett Cannon2008-03-031-2/+9
| | | | tests is important.
* Add a note in the main test class' docstring that the order of execution of theBrett Cannon2008-03-031-0/+4
| | | | tests is important.
* Move test_largefile over to using 'with' statements for open files.Brett Cannon2008-03-031-28/+18
| | | | Also rename the driver function to test_main() instead of main_test().
* Refactor test_logging to use unittest. This should finally solve the flakinessBrett Cannon2008-03-031-2163/+751
| | | | | | issues. Thanks to Antoine Pitrou for the patch.
* Modify import of test_support so that the code can also be used with aGregory P. Smith2008-03-0215-15/+73
| | | | | stand alone distribution of bsddb that includes its own small copy of test_support for the needed functionality on older pythons.
* Made sqlite3 module's regression tests work with SQLite versions that don'tGerhard Häring2008-03-021-2/+3
| | | | support "create table if not exists", yet.
* Give IDLE a release dateBarry Warsaw2008-03-011-1/+1
|
* bump idle version numberBarry Warsaw2008-03-011-1/+1
|
* Updated to pysqlite 2.4.1. Documentation additions will come later.Gerhard Häring2008-02-297-14/+298
|
* Fix docstring typo.Mark Dickinson2008-02-291-1/+1
|
* Handle the repeat keyword argument for itertools.product().Raymond Hettinger2008-02-291-0/+3
|
* Add __format__ method to Decimal, to support PEP 3101Mark Dickinson2008-02-292-0/+333
|
* Add alternate constructor for itertools.chain().Raymond Hettinger2008-02-281-0/+7
|
* Have itertools.chain() consume its inputs lazily instead of building a tuple ↵Raymond Hettinger2008-02-281-2/+2
| | | | of iterators at the outset.
* Windows fix for signal test - skip it earlierChristian Heimes2008-02-281-5/+6
|
* Prevent SocketServer.ForkingMixIn from waiting on child processes that itJeffrey Yasskin2008-02-282-19/+47
| | | | | didn't create, in most cases. When there are max_children handlers running, it will still wait for any child process, not just handler processes.
* #2169: make generated HTML more validAndrew M. Kuchling2008-02-281-3/+4
|
* Thread.start() used sleep(0.000001) to make sure it didn't return before theJeffrey Yasskin2008-02-281-11/+10
| | | | | | | | | | | | | | | | | | | | | | new thread had started. At least on my MacBook Pro, that wound up sleeping for a full 10ms (probably 1 jiffy). By using an Event instead, we can be absolutely certain that the thread has started, and return more quickly (217us). Before: $ ./python.exe -m timeit -s 'from threading import Thread' 't = Thread(); t.start(); t.join()' 100 loops, best of 3: 10.3 msec per loop $ ./python.exe -m timeit -s 'from threading import Thread; t = Thread()' 't.isAlive()' 1000000 loops, best of 3: 0.47 usec per loop After: $ ./python.exe -m timeit -s 'from threading import Thread' 't = Thread(); t.start(); t.join()' 1000 loops, best of 3: 217 usec per loop $ ./python.exe -m timeit -s 'from threading import Thread; t = Thread()' 't.isAlive()' 1000000 loops, best of 3: 0.86 usec per loop To be fair, the 10ms isn't CPU time, and other threads including the spawned one get to run during it. There are also some slightly more complicated ways to get back the .4us in isAlive() if we want.
* Speed test_socketserver up from 28.739s to 0.226s, simplify the logic, and makeJeffrey Yasskin2008-02-281-109/+108
| | | | sure all tests run even if some fail.
* Move abc._Abstract into object by adding a new flag Py_TPFLAGS_IS_ABSTRACT,Jeffrey Yasskin2008-02-282-48/+2
| | | | | | | | which forbids constructing types that have it set. The effect is to speed ./python.exe -m timeit -s 'import abc' -s 'class Foo(object): __metaclass__ = abc.ABCMeta' 'Foo()' up from 2.5us to 0.201us. This fixes issue 1762.
* Larger test rangeRaymond Hettinger2008-02-271-1/+1
|
* Add itertools.combinations().Raymond Hettinger2008-02-261-0/+24
|
* Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and ↵Christian Heimes2008-02-261-1/+50
| | | | | | improve error msg My tests don't show the promised speed up of 10%. The code is as fast as the old code for simple cases and slightly faster for complex cases with several of args and kwargs. But the patch simplifies the code, too.
* Add a timing flag to Trace so you can see where slowness occursNeal Norwitz2008-02-261-4/+21
| | | | like waiting for socket timeouts in test_smtplib :-).
* Speed up this test by about 99%. Remove sleeps and replace with events.Neal Norwitz2008-02-261-65/+42
| | | | | | | | (This may fail on some slow platforms, but we can fix those cases which should be relatively isolated and easier to find now.) Move two test cases that didn't require a server to be started to a separate TestCase. These tests were taking 3 seconds which is what the timeout was set to.
* Don't use a hard coded port. This test could hang/fail if the port is in use.Neal Norwitz2008-02-261-4/+25
| | | | Speed this test up by avoiding a sleep and using the event.
* Revert part of r60927 which made invalid assumptions about the API offered ↵Raymond Hettinger2008-02-251-3/+3
| | | | by db modules.
* Make sure the itertools filter functions give the same performance for ↵Raymond Hettinger2008-02-251-0/+2
| | | | func=bool as func=None.
* Issue 2117. Update compiler module to handle class decorators.Facundo Batista2008-02-253-2/+19
| | | | Thanks Thomas Herve
* Use file descriptor for real stdoutAndrew M. Kuchling2008-02-251-1/+3
|
* Move .setupterm() output so that we don't try to call endwin() if it failsAndrew M. Kuchling2008-02-251-4/+3
|
* Fix a minor typo in a docstring.Brett Cannon2008-02-251-1/+1
|
* Create a db_home directory with a unique name so multiple users canNeal Norwitz2008-02-2417-78/+72
| | | | | | | | | | | | run the test simultaneously. The simplest thing I found that worked on both Windows and Unix was to use the PID. It's unique so should be sufficient. This should prevent many of the spurious failures of the automated tests since they run as different users. Also cleanup the directory consistenly in the tearDown methods. It would be nice if someone ensured that the directories are always created with a consistent name.
* Remove duplicate 'import re' in decimal.pyMark Dickinson2008-02-241-2/+1
|
* Issue 1742669. Now %d accepts very big float numbers.Facundo Batista2008-02-242-3/+30
| | | | Thanks Gabriel Genellina.
* #1627: httplib now ignores negative Content-Length headers.Georg Brandl2008-02-242-0/+10
|
* #900744: If an invalid chunked-encoding header is sent by a server,Georg Brandl2008-02-242-1/+36
| | | | | httplib will now raise IncompleteRead and close the connection instead of raising ValueError.
* #1506171: added operator.methodcaller().Georg Brandl2008-02-231-0/+18
|
* #1826: allow dotted attribute paths in operator.attrgetter.Georg Brandl2008-02-231-0/+20
|
* Added simple test case. Thanks Benjamin Peterson.Facundo Batista2008-02-231-0/+33
|