]>
granicus.if.org Git - python/log
R David Murray [Sat, 22 Sep 2012 13:59:51 +0000 (09:59 -0400)]
#15925: fix regression: return None for null and non-date strings.
Since the logic for null detection had to move into the _parseaddr
functions, I removed the wrappers from email.utils and just import the
_parseaddr functions directly.
Ezio Melotti [Sat, 22 Sep 2012 08:25:22 +0000 (11:25 +0300)]
#15949, 15899: merge with 3.2.
Ezio Melotti [Sat, 22 Sep 2012 08:23:06 +0000 (11:23 +0300)]
#15949, 15899: avoid using non-latin1 chars in the doc (they break `make all-pdf`).
Larry Hastings [Fri, 21 Sep 2012 17:12:14 +0000 (10:12 -0700)]
Cleanup/rewrite shutil docs regarding follow_symlinks and copying attributes.
Larry Hastings [Fri, 21 Sep 2012 16:40:41 +0000 (09:40 -0700)]
Mention that "defaults" can be None for inspect.getfullargspec.
Also minor formatting cleanups.
Larry Hastings [Fri, 21 Sep 2012 16:30:19 +0000 (09:30 -0700)]
Add What's New entries for some minor work I did in 3.3.
Ezio Melotti [Fri, 21 Sep 2012 14:29:20 +0000 (17:29 +0300)]
#15421: merge with 3.2.
Ezio Melotti [Fri, 21 Sep 2012 14:26:35 +0000 (17:26 +0300)]
#15421: fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier.
Ezio Melotti [Fri, 21 Sep 2012 13:53:07 +0000 (16:53 +0300)]
#15304: merge with 3.2.
Ezio Melotti [Fri, 21 Sep 2012 13:48:12 +0000 (16:48 +0300)]
#15304: fix wrong warning message in test.support.temp_cwd().
Ezio Melotti [Fri, 21 Sep 2012 13:31:24 +0000 (16:31 +0300)]
#15980: merge with 3.2.
Ezio Melotti [Fri, 21 Sep 2012 13:30:22 +0000 (16:30 +0300)]
#15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka.
doko@ubuntu.com [Fri, 21 Sep 2012 12:00:47 +0000 (14:00 +0200)]
null merge
doko@ubuntu.com [Fri, 21 Sep 2012 11:52:29 +0000 (13:52 +0200)]
- Issue #11715: Fix multiarch detection without having Debian development
tools (dpkg-dev) installed.
Benjamin Peterson [Fri, 21 Sep 2012 03:49:33 +0000 (23:49 -0400)]
merge 3.2
Benjamin Peterson [Fri, 21 Sep 2012 03:48:23 +0000 (23:48 -0400)]
remove gdb noise about linux-vdso
Alexander Belopolsky [Thu, 20 Sep 2012 21:25:18 +0000 (17:25 -0400)]
null merge
Alexander Belopolsky [Thu, 20 Sep 2012 21:23:46 +0000 (17:23 -0400)]
Issue #15973: fixed 3.2 backport.
Alexander Belopolsky [Thu, 20 Sep 2012 20:49:58 +0000 (16:49 -0400)]
merge
Alexander Belopolsky [Thu, 20 Sep 2012 20:44:11 +0000 (16:44 -0400)]
merge
Alexander Belopolsky [Thu, 20 Sep 2012 20:42:34 +0000 (16:42 -0400)]
merged 3.2
Alexander Belopolsky [Thu, 20 Sep 2012 20:39:33 +0000 (16:39 -0400)]
Issue #15973: Fixed segmentation fault on timezone comparison to other types.
Mark Dickinson [Thu, 20 Sep 2012 20:30:34 +0000 (21:30 +0100)]
Issue 15959: Merge from 3.2.
Mark Dickinson [Thu, 20 Sep 2012 20:29:28 +0000 (21:29 +0100)]
Issue 15959: Fix type mismatch for quick{_neg}_int_allocs. Thanks Serhiy Storchaka.
Mark Dickinson [Thu, 20 Sep 2012 19:51:53 +0000 (20:51 +0100)]
Issue 15985: merge from 3.2.
Mark Dickinson [Thu, 20 Sep 2012 19:51:14 +0000 (20:51 +0100)]
Issue 15985: fix round argument names in documentation. Thanks Chris Jerdonek.
Antoine Pitrou [Thu, 20 Sep 2012 18:56:47 +0000 (20:56 +0200)]
Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t.
Patch by Serhiy Storchaka.
Christian Heimes [Thu, 20 Sep 2012 10:43:24 +0000 (12:43 +0200)]
merge
Christian Heimes [Thu, 20 Sep 2012 10:42:54 +0000 (12:42 +0200)]
Issue #15977: Fix memory leak in Modules/_ssl.c when the function _set_npn_protocols() is called multiple times
Ezio Melotti [Thu, 20 Sep 2012 06:47:41 +0000 (09:47 +0300)]
Merge the quotes/backslashes fixes with 3.2.
Ezio Melotti [Thu, 20 Sep 2012 06:47:03 +0000 (09:47 +0300)]
Fix a few quotes/backslashes.
Ezio Melotti [Thu, 20 Sep 2012 06:09:24 +0000 (09:09 +0300)]
Merge markup fixes in smtpd.rst with 3.2.
Ezio Melotti [Thu, 20 Sep 2012 06:06:51 +0000 (09:06 +0300)]
Fix markup in smtpd.rst.
Ezio Melotti [Thu, 20 Sep 2012 05:46:06 +0000 (08:46 +0300)]
Update suspicious ignore file.
Ezio Melotti [Thu, 20 Sep 2012 05:33:53 +0000 (08:33 +0300)]
Fix rst markup.
Ezio Melotti [Thu, 20 Sep 2012 03:14:54 +0000 (06:14 +0300)]
Merge rst markup fixes in timeit docs with 3.2.
Ezio Melotti [Thu, 20 Sep 2012 03:13:38 +0000 (06:13 +0300)]
Fix rst markup in timeit docs.
Ezio Melotti [Wed, 19 Sep 2012 05:25:01 +0000 (08:25 +0300)]
#15970: merge with 3.2.
Ezio Melotti [Wed, 19 Sep 2012 05:19:12 +0000 (08:19 +0300)]
#15970: xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
Trent Nelson [Wed, 19 Sep 2012 02:00:25 +0000 (22:00 -0400)]
Silence compiler warnings on Solaris 10 via explicit (void *) casts.
Trent Nelson [Wed, 19 Sep 2012 01:58:03 +0000 (21:58 -0400)]
Silence compiler warnings on Solaris 10 via explicit (void *) casts.
(Compiler: Solaris Studio 12.3)
Trent Nelson [Wed, 19 Sep 2012 01:50:06 +0000 (21:50 -0400)]
#15965: Explicitly cast AT_FDCWD as (int).
Required on Solaris 10 (which defines AT_FDCWD as 0xffd19553),
harmless on other platforms.
Victor Stinner [Tue, 18 Sep 2012 20:40:03 +0000 (22:40 +0200)]
What's New in Python 3.3: mention unittest.mock
Ezio Melotti [Tue, 18 Sep 2012 04:21:18 +0000 (07:21 +0300)]
#15796: merge with 3.2.
Ezio Melotti [Tue, 18 Sep 2012 04:20:18 +0000 (07:20 +0300)]
#15796: Fix \n in readline docstring. Patch by Serhiy Storchaka.
Ezio Melotti [Mon, 17 Sep 2012 07:01:03 +0000 (09:01 +0200)]
#11643: merge with 3.2.
Ezio Melotti [Mon, 17 Sep 2012 06:59:36 +0000 (08:59 +0200)]
#11643: fix rst markup error in site.rst.
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