]>
granicus.if.org Git - python/log
Ezio Melotti [Mon, 17 Sep 2012 02:30:58 +0000 (05:30 +0300)]
#15920: merge with 3.2.
Ezio Melotti [Mon, 17 Sep 2012 02:29:47 +0000 (05:29 +0300)]
#15920: fix doctests in Doc/howto/regex.rst. Patch by Chris Jerdonek.
Antoine Pitrou [Sat, 15 Sep 2012 22:13:10 +0000 (00:13 +0200)]
Issue #15526: try to fix test_startfile's inability to clean up after itself in time.
Patch by Jeremy Kloth.
Antoine Pitrou [Sat, 15 Sep 2012 22:12:50 +0000 (00:12 +0200)]
Issue #15526: try to fix test_startfile's inability to clean up after itself in time.
Patch by Jeremy Kloth.
Ezio Melotti [Sat, 15 Sep 2012 05:34:47 +0000 (08:34 +0300)]
#15789: merge with 3.2.
Ezio Melotti [Sat, 15 Sep 2012 05:34:08 +0000 (08:34 +0300)]
#15789: mention shell-like parts of the stdlib in the subprocess docs. Patch by Chris Rebert.
Ezio Melotti [Sat, 15 Sep 2012 02:52:36 +0000 (05:52 +0300)]
#15932: merge with 3.2.
Ezio Melotti [Sat, 15 Sep 2012 02:51:45 +0000 (05:51 +0300)]
#15932: use with statement in csv doc examples. Patch by Dario Bertini.
Antoine Pitrou [Fri, 14 Sep 2012 15:30:31 +0000 (17:30 +0200)]
Issue #15842: the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
Patch by Alessandro Moura.
Antoine Pitrou [Fri, 14 Sep 2012 15:28:10 +0000 (17:28 +0200)]
Issue #15842: the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
Patch by Alessandro Moura.
Ezio Melotti [Fri, 14 Sep 2012 03:35:09 +0000 (06:35 +0300)]
#15831: merge with 3.2
Ezio Melotti [Fri, 14 Sep 2012 03:32:35 +0000 (06:32 +0300)]
#15831: document multiple signatures on different lines. Patch by Chris Jerdonek.
Ezio Melotti [Thu, 13 Sep 2012 22:40:41 +0000 (01:40 +0300)]
#15437, #15439: merge with 3.2.
Ezio Melotti [Thu, 13 Sep 2012 22:24:44 +0000 (01:24 +0300)]
#15437, #15439: merge Doc/ACKS.txt with Misc/ACKS and modify Doc/about.rst accordingly.
Richard Oudkerk [Thu, 13 Sep 2012 16:27:15 +0000 (17:27 +0100)]
Issue #15881: Clarify comment in exit function
Stefan Krah [Wed, 12 Sep 2012 19:30:09 +0000 (21:30 +0200)]
Issue #15599: FreeBSD on KVM cannot handle a very low switch interval.
Barry Warsaw [Wed, 12 Sep 2012 19:31:38 +0000 (15:31 -0400)]
Merge 3.2 fix updates and tests for issue #15906.
Barry Warsaw [Wed, 12 Sep 2012 18:42:34 +0000 (14:42 -0400)]
Update merge from 2.7: s/basetring/str
Barry Warsaw [Wed, 12 Sep 2012 18:34:50 +0000 (14:34 -0400)]
A follow up for issue #15906: change the test for calling the type conversion
on the action's default, reverting it back to previous behavior. Conversion
is only done on string defaults.
Add a test for this and another test that ensures such type conversions are
only called once.
Antoine Pitrou [Wed, 12 Sep 2012 16:02:18 +0000 (18:02 +0200)]
Merge
Antoine Pitrou [Wed, 12 Sep 2012 16:01:36 +0000 (18:01 +0200)]
Issue #15926: Fix crash after multiple reinitializations of the interpreter.
Christian Heimes [Wed, 12 Sep 2012 15:58:20 +0000 (17:58 +0200)]
Cleanup 'k' when the creation of PySTEntryObject fails.
ad3824a90261 used to decref 'k' in too many error cases.
Christian Heimes [Wed, 12 Sep 2012 15:58:10 +0000 (17:58 +0200)]
Cleanup 'k' when the creation of PySTEntryObject fails.
ad3824a90261 used to decref 'k' in too many error cases.
Christian Heimes [Wed, 12 Sep 2012 15:53:15 +0000 (17:53 +0200)]
Partly revert
ad3824a90261 and add comment about reference ownership
Christian Heimes [Wed, 12 Sep 2012 15:52:46 +0000 (17:52 +0200)]
Partly revert
ad3824a90261 and add comment about reference ownership
Christian Heimes [Wed, 12 Sep 2012 13:32:06 +0000 (15:32 +0200)]
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
Christian Heimes [Wed, 12 Sep 2012 13:31:43 +0000 (15:31 +0200)]
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
Barry Warsaw [Wed, 12 Sep 2012 04:12:29 +0000 (00:12 -0400)]
- Issue #15906: Fix a regression in argparse caused by the preceding change,
when action='append', type='str' and default=[].
Barry Warsaw [Wed, 12 Sep 2012 02:38:47 +0000 (22:38 -0400)]
- Issue #15906: Fix a regression in argparse caused by the preceding change,
when action='append', type='str' and default=[].
Christian Heimes [Tue, 11 Sep 2012 17:28:42 +0000 (19:28 +0200)]
Updates NEWS for issue #15895
R David Murray [Tue, 11 Sep 2012 17:02:13 +0000 (13:02 -0400)]
Merge #14617: clarify discussion of interrelationship of __eq__ and __hash__.
R David Murray [Tue, 11 Sep 2012 17:01:43 +0000 (13:01 -0400)]
#14617: clarify discussion of interrelationship of __eq__ and __hash__.
Benjamin Peterson [Tue, 11 Sep 2012 16:05:18 +0000 (12:05 -0400)]
merge heads
Benjamin Peterson [Tue, 11 Sep 2012 16:05:05 +0000 (12:05 -0400)]
remove useless and defined initialization (closes #15921)
Christian Heimes [Tue, 11 Sep 2012 15:31:08 +0000 (17:31 +0200)]
Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815
Christian Heimes [Tue, 11 Sep 2012 15:30:53 +0000 (17:30 +0200)]
Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815
Christian Heimes [Tue, 11 Sep 2012 13:47:28 +0000 (15:47 +0200)]
Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening.
Christian Heimes [Tue, 11 Sep 2012 12:11:03 +0000 (14:11 +0200)]
Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false.
Christian Heimes [Tue, 11 Sep 2012 12:08:49 +0000 (14:08 +0200)]
Spelling past tense -> present tense
Christian Heimes [Tue, 11 Sep 2012 12:03:25 +0000 (14:03 +0200)]
Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap()
Senthil Kumaran [Tue, 11 Sep 2012 10:20:22 +0000 (03:20 -0700)]
merge. Fix issue #15899: Make the unicode.rst doctests pass. Patch by Chris Jerdonek.
Senthil Kumaran [Tue, 11 Sep 2012 10:17:52 +0000 (03:17 -0700)]
Fix issue #15899: Make the unicode.rst doctests pass. Patch by Chris Jerdonek.
R David Murray [Tue, 11 Sep 2012 01:08:50 +0000 (21:08 -0400)]
#15886: remove redundant phrase
Jesus Cea [Tue, 11 Sep 2012 00:08:48 +0000 (02:08 +0200)]
MERGE: Closes #15793: Stack corruption in ssl.RAND_egd()
Jesus Cea [Tue, 11 Sep 2012 00:00:58 +0000 (02:00 +0200)]
Closes #15793: Stack corruption in ssl.RAND_egd()
Jesus Cea [Mon, 10 Sep 2012 20:58:35 +0000 (22:58 +0200)]
MERGE: #15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
Jesus Cea [Mon, 10 Sep 2012 20:58:07 +0000 (22:58 +0200)]
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
Jesus Cea [Mon, 10 Sep 2012 20:50:21 +0000 (22:50 +0200)]
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete
Jesus Cea [Mon, 10 Sep 2012 20:49:50 +0000 (22:49 +0200)]
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete
Jesus Cea [Mon, 10 Sep 2012 18:20:02 +0000 (20:20 +0200)]
MERGE: #15676: Proper attribution in Misc/ACKS
Jesus Cea [Mon, 10 Sep 2012 18:19:25 +0000 (20:19 +0200)]
#15676: Proper attribution in Misc/ACKS
Stefan Krah [Mon, 10 Sep 2012 17:34:58 +0000 (19:34 +0200)]
Issue #15882: Change _decimal to accept any coefficient tuple when
constructing infinities. This is done for backwards compatibility
with decimal.py: Infinity coefficients are undefined in _decimal
(in accordance with the specification).
Christian Heimes [Mon, 10 Sep 2012 15:46:09 +0000 (17:46 +0200)]
Fixed reference leak in error branch of _bufferedreader_read_all(). The variable data can contain a bytes object but it wasn't cleaned up when PyList_New() failed. CID 715364
Christian Heimes [Mon, 10 Sep 2012 15:00:30 +0000 (17:00 +0200)]
Fixed memory leak in error branch of object_repr which may leak a reference to mod when type_qualname returns NULL. CID 715371
Christian Heimes [Mon, 10 Sep 2012 14:57:36 +0000 (16:57 +0200)]
Fixed memory leak in error branch of object_repr which may leak a reference to mod when type_name returns NULL. CID 715371
Christian Heimes [Mon, 10 Sep 2012 14:53:28 +0000 (16:53 +0200)]
Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s going out of scope leaks the storage it points to.
Christian Heimes [Mon, 10 Sep 2012 14:52:42 +0000 (16:52 +0200)]
Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s going out of scope leaks the storage it points to.
R David Murray [Mon, 10 Sep 2012 14:16:46 +0000 (10:16 -0400)]
Merge #14649: clarify DocTestSuite error when there are no docstrings.
Also adds tests to verify the documented behavior (which is probably a bug, as
indicated in the added comments).
Patch by Chris Jerdonek.
R David Murray [Mon, 10 Sep 2012 14:15:58 +0000 (10:15 -0400)]
#14649: clarify DocTestSuite error when there are no docstrings.
Also adds tests to verify the documented behavior (which is probably a bug, as
indicated in the added comments).
Patch by Chris Jerdonek.
R David Murray [Mon, 10 Sep 2012 14:10:13 +0000 (10:10 -0400)]
Null merge for
ddb406904be1 backport.
Christian Heimes [Mon, 10 Sep 2012 12:48:43 +0000 (14:48 +0200)]
Added test for
85cb90f79cbf and see how the code handles all flags at once
doko@ubuntu.com [Mon, 10 Sep 2012 12:19:42 +0000 (14:19 +0200)]
backport from the trunk, to fix test_tools with srcdir != builddir
changeset: 77827:
c23b442b5d5e
user: Antoine Pitrou <solipsis@pitrou.net>
date: Thu Jun 28 01:20:26 2012 +0200
summary: Avoid using scrdir, it's broken.
changeset: 77826:
f0e58e778215
user: Neil Schemenauer <nas@arctrix.com>
date: Wed Jun 27 15:58:37 2012 -0600
summary: Fix bug in test_tools that prevented building is separate directory.
Richard Oudkerk [Mon, 10 Sep 2012 12:06:02 +0000 (13:06 +0100)]
Merge
Richard Oudkerk [Mon, 10 Sep 2012 12:00:33 +0000 (13:00 +0100)]
Issue #15901: Change example to use byte string instead of string
Christian Heimes [Mon, 10 Sep 2012 11:17:23 +0000 (13:17 +0200)]
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
Christian Heimes [Mon, 10 Sep 2012 11:16:45 +0000 (13:16 +0200)]
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
Christian Heimes [Mon, 10 Sep 2012 09:48:41 +0000 (11:48 +0200)]
Fixed memory leak in error branch of formatfloat(). CID 719687
Christian Heimes [Mon, 10 Sep 2012 01:50:48 +0000 (03:50 +0200)]
Fixed out-of-bounce write to rawmode buffer. The fixed size buffer wasn't enlarged for the new 'x' flag. The buffer may contain the 5 flags xrwa+ and the \0 byte
Christian Heimes [Mon, 10 Sep 2012 01:09:17 +0000 (03:09 +0200)]
Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases
Christian Heimes [Mon, 10 Sep 2012 01:08:46 +0000 (03:08 +0200)]
Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases
Christian Heimes [Mon, 10 Sep 2012 01:01:16 +0000 (03:01 +0200)]
Fixed possible reference leak to mod when type_name() returns NULL
Christian Heimes [Mon, 10 Sep 2012 01:00:14 +0000 (03:00 +0200)]
Fixed possible reference leak to mod when type_name() returns NULL
Christian Heimes [Mon, 10 Sep 2012 00:55:13 +0000 (02:55 +0200)]
PyTuple_Pack() was missing va_end() in its error branch which lead to a resource leak.
Christian Heimes [Mon, 10 Sep 2012 00:54:51 +0000 (02:54 +0200)]
PyTuple_Pack() was missing va_end() in its error branch which lead to a resource leak.
Christian Heimes [Mon, 10 Sep 2012 00:51:27 +0000 (02:51 +0200)]
Fixed resource leak to scratch when _PyUnicodeWriter_Prepare fails
Christian Heimes [Mon, 10 Sep 2012 00:45:56 +0000 (02:45 +0200)]
Py_TYPE() has already dereferenced self before the NULL check. Moved Py_TYPE() after the check for self == NULL
Christian Heimes [Mon, 10 Sep 2012 00:45:31 +0000 (02:45 +0200)]
Py_TYPE() has already dereferenced self before the NULL check. Moved Py_TYPE() after the check for self == NULL
Christian Heimes [Mon, 10 Sep 2012 00:00:34 +0000 (02:00 +0200)]
Fixed two memory leaks in make_filename() in zipimport.c. The allocated buffer wasn't cleaned up in two error cases. CID 486832
Christian Heimes [Sun, 9 Sep 2012 23:25:50 +0000 (01:25 +0200)]
Make sure that *really* no more than sizeof(ifr.ifr_name) chars are strcpy-ed to ifr.ifr_name and that the string is *always* NUL terminated. New code shouldn't use strcpy(), too. CID 719692
Jesus Cea [Sun, 9 Sep 2012 23:23:05 +0000 (01:23 +0200)]
Closes #15676: mmap: add empty file check prior to offset check
Alexander Belopolsky [Sun, 9 Sep 2012 23:01:20 +0000 (19:01 -0400)]
merge
Jesus Cea [Sun, 9 Sep 2012 22:27:55 +0000 (00:27 +0200)]
Closes #15676: mmap: add empty file check prior to offset check
Alexander Belopolsky [Sun, 9 Sep 2012 18:11:45 +0000 (14:11 -0400)]
Issue #15881: Added NEWS entry and proper credit.
Alexander Belopolsky [Sun, 9 Sep 2012 17:31:08 +0000 (13:31 -0400)]
Issue #15881: Fixed 3.2 backport.
Alexander Belopolsky [Sun, 9 Sep 2012 17:25:06 +0000 (13:25 -0400)]
Fixed whitespace
Alexander Belopolsky [Sun, 9 Sep 2012 17:22:45 +0000 (13:22 -0400)]
Fixed whitespace
Alexander Belopolsky [Sun, 9 Sep 2012 17:20:58 +0000 (13:20 -0400)]
Issue #15881: Fixed atexit hook in multiprocessing.
Alexander Belopolsky [Sun, 9 Sep 2012 17:16:15 +0000 (13:16 -0400)]
Issue #15881: Fixed atexit hook in multiprocessing.
Georg Brandl [Sun, 9 Sep 2012 09:19:17 +0000 (11:19 +0200)]
Merge in changes from 3.3.0rc2 release clone.
Georg Brandl [Sun, 9 Sep 2012 09:16:41 +0000 (11:16 +0200)]
Post-release updates for 3.3.0rc2.
Georg Brandl [Sun, 9 Sep 2012 07:04:21 +0000 (09:04 +0200)]
Added tag v3.3.0rc2 for changeset
88a0792e8ba3
Ned Deily [Sun, 9 Sep 2012 02:04:47 +0000 (19:04 -0700)]
Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
Ned Deily [Sun, 9 Sep 2012 01:59:46 +0000 (18:59 -0700)]
null merge
Ned Deily [Sun, 9 Sep 2012 01:50:56 +0000 (18:50 -0700)]
Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
R David Murray [Sat, 8 Sep 2012 20:46:10 +0000 (16:46 -0400)]
Merge #5088: document behavior of optparse defaults with 'append' action.
R David Murray [Sat, 8 Sep 2012 20:45:35 +0000 (16:45 -0400)]
#5088: document behavior of optparse defaults with 'append' action.
R David Murray [Sat, 8 Sep 2012 20:43:17 +0000 (16:43 -0400)]
Merge Ezio's 'merge heads'.
Ezio Melotti [Sat, 8 Sep 2012 17:52:19 +0000 (20:52 +0300)]
Merge heads.
Ezio Melotti [Sat, 8 Sep 2012 17:49:18 +0000 (20:49 +0300)]
#15865: merge with 3.2.
Ezio Melotti [Sat, 8 Sep 2012 17:46:01 +0000 (20:46 +0300)]
#15865: add "*" in the signature to document keyword-only args in the docs. Patch by Chris Jerdonek.