----------------------------------- [http://svn.python.org/view?rev=61001&view=rev r61001] | christian.heimes | 2008-02-23 12:42:31 -0500 (Sat, 23 Feb 2008) | 1 line Changed paths: M /python/trunk/Misc/NEWS M /python/trunk/Modules/syslogmodule.c Patch #1957: syslogmodule: Release GIL when calling syslog(3) ----------------------------------- [http://svn.python.org/view?rev=61002&view=rev r61002] | christian.heimes | 2008-02-23 12:52:07 -0500 (Sat, 23 Feb 2008) | 2 lines Changed paths: M /python/trunk/Misc/NEWS M /python/trunk/Python/Python-ast.c M /python/trunk/Python/import.c Issue #2051 and patch from Alexander Belopolsky: Permission for pyc and pyo files are inherited from the py file. ----------------------------------- [http://svn.python.org/view?rev=61006&view=rev r61006] | andrew.kuchling | 2008-02-23 14:02:33 -0500 (Sat, 23 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/imaplib.py #1389051: IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh. ----------------------------------- [http://svn.python.org/view?rev=61008&view=rev r61008] | andrew.kuchling | 2008-02-23 14:28:58 -0500 (Sat, 23 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/socket.py #1389051, #1092502: fix excessively large allocations when using read() on a socket ----------------------------------- [http://svn.python.org/view?rev=61011&view=rev r61011] | jeffrey.yasskin | 2008-02-23 14:40:54 -0500 (Sat, 23 Feb 2008) | 13 lines Changed paths: M /python/trunk/Lib/test/test_threading.py M /python/trunk/Lib/threading.py Prevent classes like: class RunSelfFunction(object): def __init__(self): self.thread = threading.Thread(target=self._run) self.thread.start() def _run(self): pass from creating a permanent cycle between the object and the thread by having the Thread delete its references to the object when it completes. As an example of the effect of this bug, paramiko.Transport inherits from Thread to avoid it. ----------------------------------- [http://svn.python.org/view?rev=61013&view=rev r61013] | jeffrey.yasskin | 2008-02-23 15:40:35 -0500 (Sat, 23 Feb 2008) | 3 lines Changed paths: M /python/trunk/Lib/test/test_threading.py M /python/trunk/Lib/threading.py Followup to [http://svn.python.org/view?rev=61011&view=rev r61011]: Also avoid the reference cycle when the Thread's target raises an exception. ----------------------------------- [http://svn.python.org/view?rev=61019&view=rev r61019] | georg.brandl | 2008-02-23 17:09:24 -0500 (Sat, 23 Feb 2008) | 2 lines Changed paths: M /python/trunk/Lib/popen2.py Use os.closerange() in popen2. ----------------------------------- [http://svn.python.org/view?rev=61033&view=rev r61033] | christian.heimes | 2008-02-23 18:59:45 -0500 (Sat, 23 Feb 2008) | 1 line Changed paths: M /python/trunk/Python/import.c MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short. ----------------------------------- [http://svn.python.org/view?rev=61034&view=rev r61034] | georg.brandl | 2008-02-23 19:03:22 -0500 (Sat, 23 Feb 2008) | 4 lines Changed paths: M /python/trunk/Lib/httplib.py M /python/trunk/Lib/test/test_httplib.py M /python/trunk/Misc/NEWS #900744: If an invalid chunked-encoding header is sent by a server, httplib will now raise IncompleteRead and close the connection instead of raising ValueError. ----------------------------------- [http://svn.python.org/view?rev=61035&view=rev r61035] | georg.brandl | 2008-02-23 19:14:24 -0500 (Sat, 23 Feb 2008) | 2 lines Changed paths: M /python/trunk/Lib/httplib.py M /python/trunk/Lib/test/test_httplib.py M /python/trunk/Misc/NEWS #1627: httplib now ignores negative Content-Length headers. ----------------------------------- [http://svn.python.org/view?rev=61041&view=rev r61041] | facundo.batista | 2008-02-23 22:17:21 -0500 (Sat, 23 Feb 2008) | 4 lines Changed paths: M /python/trunk/Lib/test/string_tests.py M /python/trunk/Lib/test/test_format.py M /python/trunk/Objects/stringobject.c M /python/trunk/Objects/unicodeobject.c Issue 1742669. Now %d accepts very big float numbers. Thanks Gabriel Genellina. ----------------------------------- [http://svn.python.org/view?rev=61046&view=rev r61046] | neal.norwitz | 2008-02-24 02:21:56 -0500 (Sun, 24 Feb 2008) | 5 lines Changed paths: M /python/trunk/Modules/_ctypes/_ctypes_test.c Get ctypes working on the Alpha (Tru64). The problem was that there were two module_methods and the one used depended on the order the modules were loaded. By making the test module_methods static, it is not exported and the correct version is picked up. ----------------------------------- [http://svn.python.org/view?rev=61049&view=rev r61049] | christian.heimes | 2008-02-24 07:26:16 -0500 (Sun, 24 Feb 2008) | 1 line Changed paths: M /python/trunk/Objects/dictobject.c M /python/trunk/Objects/listobject.c Use PY_FORMAT_SIZE_T instead of z for string formatting. Thanks Neal. ----------------------------------- [http://svn.python.org/view?rev=61051&view=rev r61051] | mark.dickinson | 2008-02-24 13:12:36 -0500 (Sun, 24 Feb 2008) | 2 lines Changed paths: M /python/trunk/Lib/decimal.py Remove duplicate 'import re' in decimal.py ----------------------------------- [http://svn.python.org/view?rev=61052&view=rev r61052] | neal.norwitz | 2008-02-24 13:47:03 -0500 (Sun, 24 Feb 2008) | 11 lines Changed paths: M /python/trunk/Lib/bsddb/test/test_associate.py M /python/trunk/Lib/bsddb/test/test_basics.py M /python/trunk/Lib/bsddb/test/test_compare.py M /python/trunk/Lib/bsddb/test/test_cursor_pget_bug.py M /python/trunk/Lib/bsddb/test/test_dbobj.py M /python/trunk/Lib/bsddb/test/test_dbshelve.py M /python/trunk/Lib/bsddb/test/test_dbtables.py M /python/trunk/Lib/bsddb/test/test_env_close.py M /python/trunk/Lib/bsddb/test/test_join.py M /python/trunk/Lib/bsddb/test/test_lock.py M /python/trunk/Lib/bsddb/test/test_misc.py M /python/trunk/Lib/bsddb/test/test_pickle.py M /python/trunk/Lib/bsddb/test/test_recno.py M /python/trunk/Lib/bsddb/test/test_sequence.py M /python/trunk/Lib/bsddb/test/test_thread.py M /python/trunk/Lib/test/test_bsddb3.py M /python/trunk/Lib/test/test_support.py Create a db_home directory with a unique name so multiple users can 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. ----------------------------------- [http://svn.python.org/view?rev=61058&view=rev r61058] | neal.norwitz | 2008-02-24 20:45:37 -0500 (Sun, 24 Feb 2008) | 1 line Changed paths: M /python/trunk/Python/compile.c M /python/trunk/Python/peephole.c Fix indentation ----------------------------------- [http://svn.python.org/view?rev=61064&view=rev r61064] | andrew.kuchling | 2008-02-25 11:29:58 -0500 (Mon, 25 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/curses/__init__.py Use file descriptor for real stdout ----------------------------------- [http://svn.python.org/view?rev=61065&view=rev r61065] | christian.heimes | 2008-02-25 12:32:07 -0500 (Mon, 25 Feb 2008) | 1 line Changed paths: M /python/trunk/Include/longintrepr.h Thomas Herve explained to me that PyCrypto depends on the constants. I'm adding the aliases because C code for Python 2.x should compile under 2.6 as well. The aliases aren't available in Python 3.x though. ----------------------------------- [http://svn.python.org/view?rev=61072&view=rev r61072] | facundo.batista | 2008-02-25 17:33:55 -0500 (Mon, 25 Feb 2008) | 4 lines Changed paths: M /python/trunk/Modules/dbmmodule.c M /python/trunk/Modules/gdbmmodule.c Issue 2168. gdbm and dbm needs to be iterable; this fixes a failure in the shelve module. Thanks Thomas Herve. ----------------------------------- [http://svn.python.org/view?rev=61073&view=rev r61073] | raymond.hettinger | 2008-02-25 17:42:32 -0500 (Mon, 25 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/test/test_itertools.py M /python/trunk/Modules/itertoolsmodule.c Make sure the itertools filter functions give the same performance for func=bool as func=None. ----------------------------------- [http://svn.python.org/view?rev=61074&view=rev r61074] | raymond.hettinger | 2008-02-25 18:17:41 -0500 (Mon, 25 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/shelve.py Revert part of [http://svn.python.org/view?rev=60927&view=rev r60927] which made invalid assumptions about the API offered by db modules. ----------------------------------- [http://svn.python.org/view?rev=61075&view=rev r61075] | facundo.batista | 2008-02-25 18:46:02 -0500 (Mon, 25 Feb 2008) | 3 lines Changed paths: M /python/trunk/Modules/itertoolsmodule.c Coerced PyBool_Type to be able to compare it. ----------------------------------- [http://svn.python.org/view?rev=61078&view=rev r61078] | neal.norwitz | 2008-02-26 00:12:50 -0500 (Tue, 26 Feb 2008) | 1 line Changed paths: M /python/trunk/Modules/dbmmodule.c Whitespace normalization ----------------------------------- [http://svn.python.org/view?rev=61079&view=rev r61079] | neal.norwitz | 2008-02-26 00:23:51 -0500 (Tue, 26 Feb 2008) | 1 line Changed paths: M /python/trunk/Python/getargs.c Whitespace normalization ----------------------------------- [http://svn.python.org/view?rev=61086&view=rev r61086] | christian.heimes | 2008-02-26 12:23:51 -0500 (Tue, 26 Feb 2008) | 3 lines Changed paths: M /python/trunk/Lib/test/test_getargs2.py M /python/trunk/Modules/_testcapimodule.c M /python/trunk/Python/getargs.c Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and 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. ----------------------------------- [http://svn.python.org/view?rev=61089&view=rev r61089] | raymond.hettinger | 2008-02-26 20:08:04 -0500 (Tue, 26 Feb 2008) | 1 line Changed paths: M /python/trunk/Modules/itertoolsmodule.c One too many decrefs. ----------------------------------- [http://svn.python.org/view?rev=61100&view=rev r61100] | jeffrey.yasskin | 2008-02-28 01:09:19 -0500 (Thu, 28 Feb 2008) | 21 lines Changed paths: M /python/trunk/Lib/threading.py 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. ----------------------------------- [http://svn.python.org/view?rev=61102&view=rev r61102] | christian.heimes | 2008-02-28 06:18:49 -0500 (Thu, 28 Feb 2008) | 1 line Changed paths: M /python/trunk/Modules/itertoolsmodule.c The empty tuple is usually a singleton with a much higher refcnt than 1 ----------------------------------- [http://svn.python.org/view?rev=61105&view=rev r61105] | andrew.kuchling | 2008-02-28 09:03:03 -0500 (Thu, 28 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/SimpleHTTPServer.py #2169: make generated HTML more valid ----------------------------------- [http://svn.python.org/view?rev=61106&view=rev r61106] | jeffrey.yasskin | 2008-02-28 13:03:15 -0500 (Thu, 28 Feb 2008) | 4 lines Changed paths: M /python/trunk/Lib/SocketServer.py M /python/trunk/Lib/test/test_socketserver.py 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. ----------------------------------- [http://svn.python.org/view?rev=61108&view=rev r61108] | martin.v.loewis | 2008-02-28 14:44:22 -0500 (Thu, 28 Feb 2008) | 1 line Changed paths: M /python/trunk/Tools/msi/uuids.py Add 2.6aN uuids. ----------------------------------- [http://svn.python.org/view?rev=61109&view=rev r61109] | martin.v.loewis | 2008-02-28 14:57:34 -0500 (Thu, 28 Feb 2008) | 1 line Changed paths: M /python/trunk/Tools/msi/msi.py Bundle msvcr90.dll as a "private assembly". ----------------------------------- [http://svn.python.org/view?rev=61116&view=rev r61116] | martin.v.loewis | 2008-02-28 17:20:50 -0500 (Thu, 28 Feb 2008) | 1 line Changed paths: M /python/trunk/Tools/msi/msi.py Locate VS installation dir from environment, so that it works with the express edition. ----------------------------------- [http://svn.python.org/view?rev=61118&view=rev r61118] | raymond.hettinger | 2008-02-28 17:30:42 -0500 (Thu, 28 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/test/test_itertools.py M /python/trunk/Modules/itertoolsmodule.c Have itertools.chain() consume its inputs lazily instead of building a tuple of iterators at the outset. ----------------------------------- [http://svn.python.org/view?rev=61124&view=rev r61124] | raymond.hettinger | 2008-02-28 21:21:48 -0500 (Thu, 28 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/test/test_itertools.py M /python/trunk/Modules/itertoolsmodule.c Handle the repeat keyword argument for itertools.product(). ----------------------------------- [http://svn.python.org/view?rev=61125&view=rev r61125] | mark.dickinson | 2008-02-28 22:29:17 -0500 (Thu, 28 Feb 2008) | 2 lines Changed paths: M /python/trunk/Lib/decimal.py Fix docstring typo. ----------------------------------- [http://svn.python.org/view?rev=61128&view=rev r61128] | martin.v.loewis | 2008-02-29 11:59:21 -0500 (Fri, 29 Feb 2008) | 1 line Changed paths: A /python/trunk/PCbuild/_hashlib.vcproj (from /python/trunk/PCbuild/_ssl.vcproj:61106) M /python/trunk/PCbuild/_ssl.vcproj M /python/trunk/PCbuild/pcbuild.sln Make _hashlib a separate project. ----------------------------------- [http://svn.python.org/view?rev=61136&view=rev r61136] | martin.v.loewis | 2008-02-29 13:54:45 -0500 (Fri, 29 Feb 2008) | 1 line Changed paths: M /python/trunk/PCbuild/build_ssl.py M /python/trunk/PCbuild/readme.txt M /python/trunk/PCbuild/x64.vsprops Port build_ssl.py to 2.4; support HOST_PYTHON variable ----------------------------------- [http://svn.python.org/view?rev=61138&view=rev r61138] | martin.v.loewis | 2008-02-29 15:26:53 -0500 (Fri, 29 Feb 2008) | 1 line Changed paths: M /python/trunk/PCbuild/pcbuild.sln Make _hashlib depend on pythoncore. ----------------------------------- [http://svn.python.org/view?rev=61139&view=rev r61139] | martin.v.loewis | 2008-02-29 15:54:44 -0500 (Fri, 29 Feb 2008) | 1 line Changed paths: M /python/trunk/Tools/msi/msi.py Package Tcl from tcltk64 on AMD64. ----------------------------------- [http://svn.python.org/view?rev=61141&view=rev r61141] | gerhard.haering | 2008-02-29 17:08:41 -0500 (Fri, 29 Feb 2008) | 2 lines Changed paths: M /python/trunk/Lib/sqlite3/test/dbapi.py M /python/trunk/Lib/sqlite3/test/hooks.py A /python/trunk/Lib/sqlite3/test/py25tests.py M /python/trunk/Lib/sqlite3/test/regression.py M /python/trunk/Lib/sqlite3/test/transactions.py M /python/trunk/Lib/sqlite3/test/types.py M /python/trunk/Lib/test/test_sqlite.py M /python/trunk/Modules/_sqlite/connection.c M /python/trunk/Modules/_sqlite/connection.h M /python/trunk/Modules/_sqlite/cursor.c M /python/trunk/Modules/_sqlite/cursor.h M /python/trunk/Modules/_sqlite/microprotocols.h M /python/trunk/Modules/_sqlite/module.c M /python/trunk/Modules/_sqlite/module.h M /python/trunk/Modules/_sqlite/statement.c M /python/trunk/Modules/_sqlite/util.c M /python/trunk/Modules/_sqlite/util.h Updated to pysqlite 2.4.1. Documentation additions will come later. ----------------------------------- [http://svn.python.org/view?rev=61144&view=rev r61144] | barry.warsaw | 2008-02-29 21:26:42 -0500 (Fri, 29 Feb 2008) | 1 line Changed paths: M /python/trunk/Lib/idlelib/idlever.py bump idle version number ----------------------------------- [http://svn.python.org/view?rev=61172&view=rev r61172] | raymond.hettinger | 2008-03-02 06:57:16 -0500 (Sun, 02 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/itertoolsmodule.c Simplify code for itertools.product(). ----------------------------------- [http://svn.python.org/view?rev=61173&view=rev r61173] | raymond.hettinger | 2008-03-02 07:02:19 -0500 (Sun, 02 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/itertoolsmodule.c Handle 0-tuples which can be singletons. ----------------------------------- [http://svn.python.org/view?rev=61174&view=rev r61174] | gerhard.haering | 2008-03-02 08:08:03 -0500 (Sun, 02 Mar 2008) | 3 lines Changed paths: M /python/trunk/Lib/sqlite3/test/regression.py Made sqlite3 module's regression tests work with SQLite versions that don't support "create table if not exists", yet. ----------------------------------- [http://svn.python.org/view?rev=61183&view=rev r61183] | gregory.p.smith | 2008-03-02 15:00:53 -0500 (Sun, 02 Mar 2008) | 4 lines Changed paths: M /python/trunk/Lib/bsddb/test/test_associate.py M /python/trunk/Lib/bsddb/test/test_basics.py M /python/trunk/Lib/bsddb/test/test_compare.py M /python/trunk/Lib/bsddb/test/test_cursor_pget_bug.py M /python/trunk/Lib/bsddb/test/test_dbobj.py M /python/trunk/Lib/bsddb/test/test_dbshelve.py M /python/trunk/Lib/bsddb/test/test_dbtables.py M /python/trunk/Lib/bsddb/test/test_env_close.py M /python/trunk/Lib/bsddb/test/test_join.py M /python/trunk/Lib/bsddb/test/test_lock.py M /python/trunk/Lib/bsddb/test/test_misc.py M /python/trunk/Lib/bsddb/test/test_pickle.py M /python/trunk/Lib/bsddb/test/test_recno.py M /python/trunk/Lib/bsddb/test/test_sequence.py M /python/trunk/Lib/bsddb/test/test_thread.py Modify import of test_support so that the code can also be used with a stand alone distribution of bsddb that includes its own small copy of test_support for the needed functionality on older pythons. ----------------------------------- [http://svn.python.org/view?rev=61189&view=rev r61189] | brett.cannon | 2008-03-02 19:38:58 -0500 (Sun, 02 Mar 2008) | 5 lines Changed paths: M /python/trunk/Lib/test/test_logging.py M /python/trunk/Misc/ACKS M /python/trunk/Misc/NEWS Refactor test_logging to use unittest. This should finally solve the flakiness issues. Thanks to Antoine Pitrou for the patch. ----------------------------------- [http://svn.python.org/view?rev=61190&view=rev r61190] | jeffrey.yasskin | 2008-03-02 20:27:03 -0500 (Sun, 02 Mar 2008) | 3 lines Changed paths: M /python/trunk/Python/ceval.c compile.c always emits END_FINALLY after WITH_CLEANUP, so predict that in ceval.c. This is worth about a .03-.04us speedup on a simple with block. ----------------------------------- [http://svn.python.org/view?rev=61199&view=rev r61199] | neal.norwitz | 2008-03-02 23:37:45 -0500 (Sun, 02 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/_sqlite/connection.c Only DECREF if ret != NULL ----------------------------------- [http://svn.python.org/view?rev=61217&view=rev r61217] | andrew.kuchling | 2008-03-03 19:40:32 -0500 (Mon, 03 Mar 2008) | 1 line Changed paths: M /python/trunk/Misc/NEWS Typo fix ----------------------------------- [http://svn.python.org/view?rev=61220&view=rev r61220] | andrew.kuchling | 2008-03-03 20:48:26 -0500 (Mon, 03 Mar 2008) | 1 line Changed paths: M /python/trunk/Misc/NEWS Typo fix ----------------------------------- [http://svn.python.org/view?rev=61224&view=rev r61224] | raymond.hettinger | 2008-03-03 23:17:08 -0500 (Mon, 03 Mar 2008) | 1 line Changed paths: M /python/trunk/Doc/library/itertools.rst M /python/trunk/Lib/test/test_itertools.py M /python/trunk/Modules/itertoolsmodule.c Beef-up docs and tests for itertools. Fix-up end-case for product(). ----------------------------------- [http://svn.python.org/view?rev=61233&view=rev r61233] | neal.norwitz | 2008-03-04 11:22:46 -0500 (Tue, 04 Mar 2008) | 3 lines Changed paths: M /python/trunk/Lib/bsddb/test/test_basics.py Close the file before trying to remove the directory so it works on Windows. As reported by Trent Nelson on python-dev. ----------------------------------- [http://svn.python.org/view?rev=61235&view=rev r61235] | thomas.heller | 2008-03-04 15:21:42 -0500 (Tue, 04 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/_ctypes/libffi/fficonfig.py.in Try to fix the build for PY_LINUX. ----------------------------------- [http://svn.python.org/view?rev=61236&view=rev r61236] | fred.drake | 2008-03-04 16:14:04 -0500 (Tue, 04 Mar 2008) | 2 lines Changed paths: M /python/trunk/Lib/compileall.py fix typo ----------------------------------- [http://svn.python.org/view?rev=61237&view=rev r61237] | raymond.hettinger | 2008-03-04 17:29:44 -0500 (Tue, 04 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/itertoolsmodule.c Fix refleak in chain(). ----------------------------------- [http://svn.python.org/view?rev=61240&view=rev r61240] | amaury.forgeotdarc | 2008-03-04 20:50:33 -0500 (Tue, 04 Mar 2008) | 13 lines Changed paths: M /python/trunk/Lib/test/test_grammar.py M /python/trunk/Misc/NEWS M /python/trunk/Python/ast.c Issue#2238: some syntax errors from *args or **kwargs expressions would give bogus error messages, because of untested exceptions:: >>> f(**g(1=2)) XXX undetected error Traceback (most recent call last): File "", line 1, in TypeError: 'int' object is not iterable instead of the expected SyntaxError: keyword can't be an expression Will backport. ----------------------------------- [http://svn.python.org/view?rev=61241&view=rev r61241] | neal.norwitz | 2008-03-05 00:10:48 -0500 (Wed, 05 Mar 2008) | 3 lines Changed paths: M /python/trunk/Lib/bsddb/test/test_dbshelve.py M /python/trunk/Lib/bsddb/test/test_thread.py Remove the files/dirs after closing the DB so the tests work on Windows. Patch from Trent Nelson. Also simplified removing a file by using test_support. ----------------------------------- [http://svn.python.org/view?rev=61243&view=rev r61243] | neal.norwitz | 2008-03-05 00:20:44 -0500 (Wed, 05 Mar 2008) | 3 lines Changed paths: M /python/trunk/Lib/sqlite3/test/transactions.py Catch OSError when trying to remove a file in case removal fails. This should prevent a failure in tearDown masking any real test failure. ----------------------------------- [http://svn.python.org/view?rev=61246&view=rev r61246] | neal.norwitz | 2008-03-05 00:50:20 -0500 (Wed, 05 Mar 2008) | 1 line Changed paths: M /python/trunk/Misc/build.sh Use -u urlfetch to run more tests ----------------------------------- [http://svn.python.org/view?rev=61247&view=rev r61247] | neal.norwitz | 2008-03-05 00:51:20 -0500 (Wed, 05 Mar 2008) | 1 line Changed paths: M /python/trunk/Misc/build.sh test_smtplib sometimes reports leaks too, suppress it ----------------------------------- [http://svn.python.org/view?rev=61252&view=rev r61252] | thomas.heller | 2008-03-05 09:53:39 -0500 (Wed, 05 Mar 2008) | 2 lines Changed paths: M /python/trunk/Misc/NEWS News entry for yesterdays commit. ----------------------------------- [http://svn.python.org/view?rev=61254&view=rev r61254] | skip.montanaro | 2008-03-05 11:41:09 -0500 (Wed, 05 Mar 2008) | 4 lines Changed paths: M /python/trunk/README Elaborate on the role of the altinstall target when installing multiple versions. ----------------------------------- [http://svn.python.org/view?rev=61257&view=rev r61257] | raymond.hettinger | 2008-03-05 16:04:32 -0500 (Wed, 05 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/itertoolsmodule.c Small code cleanup. ----------------------------------- [http://svn.python.org/view?rev=61263&view=rev r61263] | georg.brandl | 2008-03-06 01:47:18 -0500 (Thu, 06 Mar 2008) | 2 lines Changed paths: M /python/trunk/Doc/distutils/sourcedist.rst M /python/trunk/Lib/distutils/command/sdist.py #1725737: ignore other VC directories other than CVS and SVN's too. ----------------------------------- [http://svn.python.org/view?rev=61264&view=rev r61264] | martin.v.loewis | 2008-03-06 01:55:22 -0500 (Thu, 06 Mar 2008) | 4 lines Changed paths: M /python/trunk/Lib/test/test_os.py M /python/trunk/Misc/NEWS Patch #2232: os.tmpfile might fail on Windows if the user has no permission to create files in the root directory. Will backport to 2.5. ----------------------------------- [http://svn.python.org/view?rev=61273&view=rev r61273] | georg.brandl | 2008-03-06 02:41:16 -0500 (Thu, 06 Mar 2008) | 2 lines Changed paths: M /python/trunk/Doc/library/py_compile.rst M /python/trunk/Lib/py_compile.py M /python/trunk/Misc/NEWS #2225: return nonzero status code from py_compile if not all files could be compiled. ----------------------------------- [http://svn.python.org/view?rev=61274&view=rev r61274] | georg.brandl | 2008-03-06 02:43:02 -0500 (Thu, 06 Mar 2008) | 2 lines Changed paths: M /python/trunk/Lib/rlcompleter.py #2220: handle matching failure more gracefully. ----------------------------------- [http://svn.python.org/view?rev=61275&view=rev r61275] | georg.brandl | 2008-03-06 02:45:52 -0500 (Thu, 06 Mar 2008) | 2 lines Changed paths: M /python/trunk/Misc/NEWS Bug #2220: handle rlcompleter attribute match failure more gracefully. ----------------------------------- [http://svn.python.org/view?rev=61278&view=rev r61278] | martin.v.loewis | 2008-03-06 08:49:47 -0500 (Thu, 06 Mar 2008) | 1 line Changed paths: M /python/trunk/PCbuild/_bsddb.vcproj M /python/trunk/PCbuild/readme.txt Rely on x64 platform configuration when building _bsddb on AMD64. ----------------------------------- [http://svn.python.org/view?rev=61286&view=rev r61286] | raymond.hettinger | 2008-03-06 17:51:36 -0500 (Thu, 06 Mar 2008) | 1 line Changed paths: M /python/trunk/Lib/test/test_itertools.py M /python/trunk/Modules/itertoolsmodule.c Issue 2246: itertools grouper object did not participate in GC (should be backported). ----------------------------------- [http://svn.python.org/view?rev=61288&view=rev r61288] | raymond.hettinger | 2008-03-06 20:33:20 -0500 (Thu, 06 Mar 2008) | 1 line Changed paths: M /python/trunk/Doc/library/itertools.rst M /python/trunk/Lib/test/test_itertools.py Tweak recipes and tests ----------------------------------- [http://svn.python.org/view?rev=61289&view=rev r61289] | jeffrey.yasskin | 2008-03-07 01:22:15 -0500 (Fri, 07 Mar 2008) | 5 lines Changed paths: M /python/trunk/Doc/library/socketserver.rst M /python/trunk/Lib/SocketServer.py M /python/trunk/Lib/test/test_socketserver.py M /python/trunk/Misc/NEWS Progress on issue #1193577 by adding a polling .shutdown() method to SocketServers. The core of the patch was written by Pedro Werneck, but any bugs are mine. I've also rearranged the code for timeouts in order to avoid interfering with the shutdown poll. ----------------------------------- [http://svn.python.org/view?rev=61290&view=rev r61290] | nick.coghlan | 2008-03-07 09:13:28 -0500 (Fri, 07 Mar 2008) | 1 line Changed paths: M /python/trunk/Doc/library/dis.rst M /python/trunk/Lib/compiler/pycodegen.py M /python/trunk/Misc/NEWS M /python/trunk/Python/ceval.c M /python/trunk/Python/compile.c M /python/trunk/Python/import.c Speed up with statements by storing the __exit__ method on the stack instead of in a temp variable (bumps the magic number for pyc files) ----------------------------------- [http://svn.python.org/view?rev=61304&view=rev r61304] | marc-andre.lemburg | 2008-03-08 05:01:43 -0500 (Sat, 08 Mar 2008) | 3 lines Changed paths: M /python/trunk/Lib/platform.py Add new name for Mandrake: Mandriva. ----------------------------------- [http://svn.python.org/view?rev=61312&view=rev r61312] | facundo.batista | 2008-03-08 11:50:27 -0500 (Sat, 08 Mar 2008) | 5 lines Changed paths: M /python/trunk/Doc/library/pdb.rst M /python/trunk/Lib/pdb.py M /python/trunk/Misc/NEWS Issue 1106316. post_mortem()'s parameter, traceback, is now optional: it defaults to the traceback of the exception that is currently being handled. ----------------------------------- [http://svn.python.org/view?rev=61313&view=rev r61313] | jeffrey.yasskin | 2008-03-08 13:26:54 -0500 (Sat, 08 Mar 2008) | 2 lines Changed paths: M /python/trunk/Tools/pybench/Setup.py A /python/trunk/Tools/pybench/With.py Add tests for with and finally performance to pybench. ----------------------------------- [http://svn.python.org/view?rev=61314&view=rev r61314] | jeffrey.yasskin | 2008-03-08 15:08:21 -0500 (Sat, 08 Mar 2008) | 2 lines Changed paths: M /python/trunk/Tools/pybench/pybench.py Fix pybench for pythons < 2.6, tested back to 2.3. ----------------------------------- [http://svn.python.org/view?rev=61317&view=rev r61317] | jeffrey.yasskin | 2008-03-08 16:35:15 -0500 (Sat, 08 Mar 2008) | 3 lines Changed paths: M /python/trunk/Tools/pybench/pybench.py Well that was dumb. platform.python_implementation returns a function, not a string. ----------------------------------- [http://svn.python.org/view?rev=61344&view=rev r61344] | raymond.hettinger | 2008-03-10 20:19:07 -0400 (Mon, 10 Mar 2008) | 1 line Changed paths: M /python/trunk/Doc/library/itertools.rst M /python/trunk/Lib/test/test_itertools.py Add recipe to docs. ----------------------------------- [http://svn.python.org/view?rev=61350&view=rev r61350] | guido.van.rossum | 2008-03-11 17:18:06 -0400 (Tue, 11 Mar 2008) | 3 lines Changed paths: M /python/trunk/Objects/stringobject.c M /python/trunk/Objects/unicodeobject.c Fix the overflows in expandtabs(). "This time for sure!" (Exploit at request.) ----------------------------------- [http://svn.python.org/view?rev=61368&view=rev r61368] | raymond.hettinger | 2008-03-13 12:43:59 -0400 (Thu, 13 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/itertoolsmodule.c Consistent tense. ----------------------------------- [http://svn.python.org/view?rev=61370&view=rev r61370] | raymond.hettinger | 2008-03-13 15:33:34 -0400 (Thu, 13 Mar 2008) | 1 line Changed paths: M /python/trunk/Lib/heapq.py Simplify the nlargest() code using heappushpop(). ----------------------------------- [http://svn.python.org/view?rev=61371&view=rev r61371] | brett.cannon | 2008-03-13 16:27:00 -0400 (Thu, 13 Mar 2008) | 4 lines Changed paths: D /python/trunk/Lib/test/output/test_thread M /python/trunk/Lib/test/test_thread.py M /python/trunk/Misc/NEWS Move test_thread over to unittest. Commits GHOP 237. Thanks Benjamin Peterson for the patch. ----------------------------------- [http://svn.python.org/view?rev=61372&view=rev r61372] | brett.cannon | 2008-03-13 16:33:10 -0400 (Thu, 13 Mar 2008) | 4 lines Changed paths: D /python/trunk/Lib/test/output/test_tokenize M /python/trunk/Lib/test/test_tokenize.py M /python/trunk/Misc/ACKS M /python/trunk/Misc/NEWS Move test_tokenize to doctest. Done as GHOP 238 by Josip Dzolonga. ----------------------------------- [http://svn.python.org/view?rev=61373&view=rev r61373] | brett.cannon | 2008-03-13 16:47:41 -0400 (Thu, 13 Mar 2008) | 4 lines Changed paths: M /python/trunk/Lib/test/test_crypt.py M /python/trunk/Lib/test/test_select.py M /python/trunk/Misc/ACKS M /python/trunk/Misc/NEWS Convert test_contains, test_crypt, and test_select to unittest. Patch from GHOP 294 by David Marek. ----------------------------------- [http://svn.python.org/view?rev=61374&view=rev r61374] | brett.cannon | 2008-03-13 17:02:16 -0400 (Thu, 13 Mar 2008) | 4 lines Changed paths: M /python/trunk/Lib/test/test_gdbm.py M /python/trunk/Misc/ACKS M /python/trunk/Misc/NEWS Move test_gdbm to use unittest. Closes issue #1960. Thanks Giampaolo Rodola. ----------------------------------- [http://svn.python.org/view?rev=61375&view=rev r61375] | brett.cannon | 2008-03-13 17:09:28 -0400 (Thu, 13 Mar 2008) | 4 lines Changed paths: M /python/trunk/Lib/test/test_fcntl.py M /python/trunk/Misc/NEWS Convert test_fcntl to unittest. Closes issue #2055. Thanks Giampaolo Rodola. ----------------------------------- [http://svn.python.org/view?rev=61376&view=rev r61376] | raymond.hettinger | 2008-03-14 01:03:44 -0400 (Fri, 14 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/_heapqmodule.c Leave heapreplace() unchanged. ----------------------------------- [http://svn.python.org/view?rev=61378&view=rev r61378] | martin.v.loewis | 2008-03-14 09:56:09 -0400 (Fri, 14 Mar 2008) | 2 lines Changed paths: M /python/trunk/Misc/NEWS M /python/trunk/PCbuild/rt.bat Patch #2284: add -x64 option to rt.bat. ----------------------------------- [http://svn.python.org/view?rev=61383&view=rev r61383] | mark.dickinson | 2008-03-14 10:23:37 -0400 (Fri, 14 Mar 2008) | 9 lines Changed paths: M /python/trunk/Lib/test/test_struct.py M /python/trunk/Misc/NEWS M /python/trunk/Objects/floatobject.c Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently across platforms: it should now raise OverflowError on all platforms. (Previously it raised OverflowError only on non IEEE 754 platforms.) Also fix the (already existing) test for this behaviour so that it actually raises TestFailed instead of just referencing it. ----------------------------------- [http://svn.python.org/view?rev=61387&view=rev r61387] | thomas.heller | 2008-03-14 17:06:21 -0400 (Fri, 14 Mar 2008) | 1 line Changed paths: M /python/trunk/Modules/_ctypes/_ctypes.c Remove unneeded initializer. ----------------------------------- [http://svn.python.org/view?rev=61402&view=rev r61402] | skip.montanaro | 2008-03-15 12:04:45 -0400 (Sat, 15 Mar 2008) | 1 line Changed paths: M /python/trunk/Doc/library/datetime.rst M /python/trunk/Lib/_strptime.py M /python/trunk/Lib/test/test_datetime.py M /python/trunk/Lib/test/test_strptime.py M /python/trunk/Modules/datetimemodule.c M /python/trunk/Modules/timemodule.c add %f format to datetime - issue 1158 ----------------------------------- [http://svn.python.org/view?rev=61403&view=rev r61403] | skip.montanaro | 2008-03-15 12:07:11 -0400 (Sat, 15 Mar 2008) | 2 lines Changed paths: M /python/trunk/Misc/NEWS . ----------------------------------- [http://svn.python.org/view?rev=61406&view=rev r61406] | neal.norwitz | 2008-03-15 18:03:18 -0400 (Sat, 15 Mar 2008) | 9 lines Changed paths: M /python/trunk/Misc/NEWS M /python/trunk/Python/compile.c Add a warning for code like: assert (0, 'message') An empty tuple does not create a warning. While questionable usage: assert (), 'message' should not display a warning. Tested manually. The warning message could be improved. Feel free to update it. ----------------------------------- [http://svn.python.org/view?rev=61407&view=rev r61407] | neal.norwitz | 2008-03-15 18:36:01 -0400 (Sat, 15 Mar 2008) | 1 line Changed paths: M /python/trunk/Python/symtable.c Handle memory allocation failure. Found by Adam Olsen ----------------------------------- [http://svn.python.org/view?rev=61435&view=rev r61435] | eric.smith | 2008-03-17 08:14:29 -0400 (Mon, 17 Mar 2008) | 2 lines Changed paths: M /python/trunk/Python/pystrtod.c Reformated lines > 79 chars. Deleted unused macro ISXDIGIT. ----------------------------------- [http://svn.python.org/view?rev=61444&view=rev r61444] | travis.oliphant | 2008-03-17 13:36:12 -0400 (Mon, 17 Mar 2008) | 1 line Changed paths: M /python/trunk/Include/abstract.h M /python/trunk/Include/object.h M /python/trunk/Include/pyerrors.h Add necessary headers to back-port new buffer protocol to Python 2.6 ----------------------------------- [http://svn.python.org/view?rev=61449&view=rev r61449] | gregory.p.smith | 2008-03-17 14:48:05 -0400 (Mon, 17 Mar 2008) | 8 lines Changed paths: M /python/trunk/Doc/library/zlib.rst M /python/trunk/Lib/test/test_zlib.py M /python/trunk/Misc/NEWS M /python/trunk/Modules/zlibmodule.c Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms regardless of the native sizeof(long) used in the integer object. This somewhat odd behavior of returning a signed is maintained in 2.x for compatibility reasons of always returning an integer rather than a long object. Fixes Issue1202 for Python 2.6 ----------------------------------- [http://svn.python.org/view?rev=61450&view=rev r61450] | neal.norwitz | 2008-03-17 15:02:45 -0400 (Mon, 17 Mar 2008) | 3 lines Changed paths: M /python/trunk/Modules/datetimemodule.c Use a buffer large enough to ensure we don't overrun, even if the value is outside the range we expect. ----------------------------------- [http://svn.python.org/view?rev=61458&view=rev r61458] | neal.norwitz | 2008-03-17 16:22:43 -0400 (Mon, 17 Mar 2008) | 5 lines Changed paths: M /python/trunk/Misc/NEWS M /python/trunk/Objects/unicodeobject.c Issue 2321: reduce memory usage (increase the memory that is returned to the system) by using pymalloc for the data of unicode objects. Will backport. ----------------------------------- [http://svn.python.org/view?rev=61468&view=rev r61468] | gregory.p.smith | 2008-03-17 20:20:01 -0400 (Mon, 17 Mar 2008) | 3 lines Changed paths: M /python/trunk/Objects/fileobject.c Fix the IOError message text when opening a file with an invalid filename. Error reported by Ilan Schnell. ----------------------------------- [http://svn.python.org/view?rev=61471&view=rev r61471] | brett.cannon | 2008-03-17 21:00:07 -0400 (Mon, 17 Mar 2008) | 2 lines Changed paths: M /python/trunk/Lib/test/test_getargs.py M /python/trunk/Lib/test/test_pep247.py M /python/trunk/Lib/test/test_strftime.py M /python/trunk/Misc/NEWS Convert test_strftime, test_getargs, and test_pep247 to use unittest. ----------------------------------- [http://svn.python.org/view?rev=61472&view=rev r61472] | jeffrey.yasskin | 2008-03-17 21:09:59 -0400 (Mon, 17 Mar 2008) | 2 lines Changed paths: M /python/trunk/Objects/intobject.c M /python/trunk/Objects/longobject.c Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster. ----------------------------------- [http://svn.python.org/view?rev=61473&view=rev r61473] | brett.cannon | 2008-03-17 21:50:25 -0400 (Mon, 17 Mar 2008) | 2 lines Changed paths: M /python/trunk/Lib/test/test_dbm.py M /python/trunk/Lib/test/test_dummy_threading.py M /python/trunk/Misc/NEWS Convert test_dummy_threading and test_dbm to unittest. ----------------------------------- [http://svn.python.org/view?rev=61474&view=rev r61474] | brett.cannon | 2008-03-17 21:58:56 -0400 (Mon, 17 Mar 2008) | 2 lines Changed paths: D /python/trunk/Lib/test/output/test_extcall M /python/trunk/Lib/test/test_extcall.py M /python/trunk/Misc/NEWS Move test_extcall to doctest. ----------------------------------- [http://svn.python.org/view?rev=61480&view=rev r61480] | brett.cannon | 2008-03-17 23:46:22 -0400 (Mon, 17 Mar 2008) | 2 lines Changed paths: M /python/trunk/Lib/test/test_errno.py M /python/trunk/Misc/NEWS test_errno was a no-op test; now it actually tests things and uses unittest. ----------------------------------- [http://svn.python.org/view?rev=61483&view=rev r61483] | brett.cannon | 2008-03-18 00:09:00 -0400 (Tue, 18 Mar 2008) | 3 lines Changed paths: M /python/trunk/Misc/NEWS D /python/trunk/Python/memmove.c D /python/trunk/Python/strerror.c M /python/trunk/configure M /python/trunk/configure.in M /python/trunk/pyconfig.h.in Remove our implementation of memmove() and strerror(); both are in the C89 standard library. ----------------------------------- [http://svn.python.org/view?rev=61484&view=rev r61484] | brett.cannon | 2008-03-18 00:16:06 -0400 (Tue, 18 Mar 2008) | 2 lines Changed paths: D /python/trunk/Lib/test/output M /python/trunk/Lib/test/regrtest.py M /python/trunk/Misc/NEWS The output directory for tests that compare against stdout is now gone! ----------------------------------- [http://svn.python.org/view?rev=61509&view=rev r61509] | trent.nelson | 2008-03-18 03:02:12 -0400 (Tue, 18 Mar 2008) | 1 line Changed paths: M /python/trunk/PCbuild/python.vcproj Issue 2286: bump up the stack size of the 64-bit debug python_d.exe to 2100000. The default value of 200000 causes a stack overflow at 1965 iterations of r_object() in marshal.c, 35 iterations before the 2000 limit enforced by MAX_MARSHAL_STACK_DEPTH. ----------------------------------- [http://svn.python.org/view?rev=61520&view=rev r61520] | thomas.heller | 2008-03-18 11:03:17 -0400 (Tue, 18 Mar 2008) | 5 lines Changed paths: M /python/trunk/Modules/_ctypes/ctypes.h Include on Solaris, see issue #1506. It would probably be better to have a configure test for that, but this is outside of my configure expertise. ----------------------------------- [http://svn.python.org/view?rev=61523&view=rev r61523] | brett.cannon | 2008-03-18 11:35:58 -0400 (Tue, 18 Mar 2008) | 5 lines Changed paths: M /python/trunk/Modules/_fileio.c M /python/trunk/Modules/main.c M /python/trunk/Modules/posixmodule.c M /python/trunk/Modules/socketmodule.c M /python/trunk/Objects/fileobject.c Remove all traces of HAVE_STRERROR. The removal of strerror.c led to the function check being removed from configure.in.