Commit Graph

38485 Commits

Author SHA1 Message Date
Georg Brandl e6dab2a077 Fix factual error. 2008-03-02 14:15:04 +00:00
Georg Brandl 72780a4b0c Make clear that the constants are strings. 2008-03-02 13:41:39 +00:00
Gerhard Häring 11ab807fff Added note about update of sqlite3 module. 2008-03-02 13:12:27 +00:00
Gerhard Häring f40f6846e3 Made sqlite3 module's regression tests work with SQLite versions that don't
support "create table if not exists", yet.
2008-03-02 13:08:03 +00:00
Raymond Hettinger e3fabd10cb Handle 0-tuples which can be singletons. 2008-03-02 12:02:19 +00:00
Raymond Hettinger 61024b9181 Simplify code for itertools.product(). 2008-03-02 11:57:16 +00:00
Raymond Hettinger 2b7a5c468b Tighten example code. 2008-03-02 11:17:51 +00:00
Raymond Hettinger f287f17779 Finish-up docs for combinations() and permutations() in itertools. 2008-03-02 10:59:31 +00:00
Georg Brandl 47dff40a40 New default basename for HTML help files. 2008-03-02 06:45:40 +00:00
Georg Brandl f017728219 Make patchlevel print out the release if called as a script. 2008-03-02 06:44:08 +00:00
Georg Brandl 7f7e30ae2e Update year. 2008-03-02 06:32:32 +00:00
Georg Brandl db9ff5f565 It's 2.6 now. 2008-03-02 06:28:16 +00:00
Barry Warsaw 65475fdba7 Set things up for 2.6a2. 2008-03-01 17:11:41 +00:00
Barry Warsaw afc6201609 Tagging 2.6a1... again! 2008-03-01 03:16:15 +00:00
Barry Warsaw 189b6d85c9 More copyright year and version number bumps 2008-03-01 03:15:20 +00:00
Barry Warsaw 9d225e63be Give IDLE a release date 2008-03-01 03:00:52 +00:00
Barry Warsaw b44ba06fb5 Untagging. 2008-03-01 03:00:01 +00:00
Barry Warsaw 4becc2f589 Tagging 2.6a1 2008-03-01 02:57:23 +00:00
Barry Warsaw 7c07523c80 Add date to NEWS 2008-03-01 02:53:36 +00:00
Fred Drake a8ee94ba1c fix typo 2008-03-01 02:45:07 +00:00
Barry Warsaw c853f5d4dc bump idle version number 2008-03-01 02:26:42 +00:00
Barry Warsaw 5297361198 Bump to version 2.6a1 2008-03-01 02:23:38 +00:00
Gerhard Häring 1cc60ed214 Updated to pysqlite 2.4.1. Documentation additions will come later. 2008-02-29 22:08:41 +00:00
Martin v. Löwis 0e795e7d92 Package Tcl from tcltk64 on AMD64. 2008-02-29 20:54:44 +00:00
Martin v. Löwis d9153fdc29 Make _hashlib depend on pythoncore. 2008-02-29 20:26:53 +00:00
Martin v. Löwis 9e0513591d Port build_ssl.py to 2.4; support HOST_PYTHON variable 2008-02-29 18:54:45 +00:00
Georg Brandl 3fd0c442dc #2208: allow for non-standard HHC location. 2008-02-29 18:21:29 +00:00
Martin v. Löwis 8b6552deb3 Build db-4.4.20 with VS9; remove VS2003 build if necessary. 2008-02-29 18:17:23 +00:00
Georg Brandl 3c94088d98 Until we got downloadable docs, stop confusing viewers by talking about a nonexisting table. 2008-02-29 18:15:36 +00:00
Martin v. Löwis f06858d154 Make _hashlib a separate project. 2008-02-29 16:59:21 +00:00
Mark Dickinson f4da77765f Fix docstring typo. 2008-02-29 03:29:17 +00:00
Raymond Hettinger 08ff6822cc Handle the repeat keyword argument for itertools.product(). 2008-02-29 02:21:48 +00:00
Mark Dickinson 1ddf1d8482 Add __format__ method to Decimal, to support PEP 3101 2008-02-29 02:16:37 +00:00
Raymond Hettinger b4cbc98c39 Add alternate constructor for itertools.chain(). 2008-02-28 22:46:41 +00:00
Raymond Hettinger 05bf6338b8 Have itertools.chain() consume its inputs lazily instead of building a tuple of iterators at the outset. 2008-02-28 22:30:42 +00:00
Martin v. Löwis 03dc56cd17 Locate VS installation dir from environment, so that it works with the express edition. 2008-02-28 22:20:50 +00:00
Christian Heimes acfd8ed0cd Windows fix for signal test - skip it earlier 2008-02-28 21:00:45 +00:00
Martin v. Löwis d9759c4880 Bundle msvcr90.dll as a "private assembly". 2008-02-28 19:57:34 +00:00
Martin v. Löwis 1c5105d668 Add 2.6aN uuids. 2008-02-28 19:44:22 +00:00
Raymond Hettinger 330958e647 Document impending updates to itertools. 2008-02-28 19:41:24 +00:00
Jeffrey Yasskin 392c159ad6 Prevent SocketServer.ForkingMixIn from waiting on child processes that it
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.
2008-02-28 18:03:15 +00:00
Andrew M. Kuchling a6298528e1 #2169: make generated HTML more valid 2008-02-28 14:03:03 +00:00
Christian Heimes cdddf18768 The empty tuple is usually a singleton with a much higher refcnt than 1 2008-02-28 11:18:49 +00:00
Raymond Hettinger 18750ab2a0 Add repeat keyword argument to itertools.product(). 2008-02-28 09:23:48 +00:00
Jeffrey Yasskin 69e1309fd4 Thread.start() used sleep(0.000001) to make sure it didn't return before the
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.
2008-02-28 06:09:19 +00:00
Jeffrey Yasskin 180997b2bb Speed test_socketserver up from 28.739s to 0.226s, simplify the logic, and make
sure all tests run even if some fail.
2008-02-28 05:53:18 +00:00
Jeffrey Yasskin 960b9b7a2f Move abc._Abstract into object by adding a new flag Py_TPFLAGS_IS_ABSTRACT,
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.
2008-02-28 04:45:36 +00:00
Raymond Hettinger c105289ec4 Simply the sample code for combinations(). 2008-02-27 01:44:34 +00:00
Raymond Hettinger 2ab0552b5e Larger test range 2008-02-27 01:08:30 +00:00
Raymond Hettinger 3bd771263d One too many decrefs. 2008-02-27 01:08:04 +00:00