]>
granicus.if.org Git - python/log
R David Murray [Tue, 11 Sep 2012 17:01:43 +0000 (13:01 -0400)]
#14617: clarify discussion of interrelationship of __eq__ and __hash__.
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
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.
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: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: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:19:25 +0000 (20:19 +0200)]
#15676: Proper attribution in Misc/ACKS
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: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: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.
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:00:33 +0000 (13:00 +0100)]
Issue #15901: Change example to use byte string instead of string
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 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:00:14 +0000 (03:00 +0200)]
Fixed possible reference leak to mod when type_name() returns NULL
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: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
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:22:45 +0000 (13:22 -0400)]
Fixed whitespace
Alexander Belopolsky [Sun, 9 Sep 2012 17:16:15 +0000 (13:16 -0400)]
Issue #15881: Fixed atexit hook in multiprocessing.
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:45:35 +0000 (16:45 -0400)]
#5088: document behavior of optparse defaults with 'append' action.
Ezio Melotti [Sat, 8 Sep 2012 17:52:19 +0000 (20:52 +0300)]
Merge heads.
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.
R David Murray [Sat, 8 Sep 2012 17:13:25 +0000 (13:13 -0400)]
#15510: clarify textwrap's handling of whitespace, and add confirming tests.
Patch by Chris Jerdonek.
R David Murray [Sat, 8 Sep 2012 16:08:01 +0000 (12:08 -0400)]
#15847: allow args to be a tuple in parse_args
This fixes a regression introduced by the fix for issue #13922. Although args
is not documented as being allowed to be a tuple, previously this worked and
so naturally there are programs in the field that depend on it.
Patch by Zbyszek Jędrzejewski-Szmek.
Stefan Krah [Sat, 8 Sep 2012 09:12:33 +0000 (11:12 +0200)]
Issue #15868: Fix refleak in bytesio.c (Coverity #715365).
Antoine Pitrou [Fri, 7 Sep 2012 21:49:07 +0000 (23:49 +0200)]
Issue #15340: Fix importing the random module when /dev/urandom cannot be opened.
This was a regression caused by the hash randomization patch.
Christian Heimes [Fri, 7 Sep 2012 00:24:58 +0000 (02:24 +0200)]
Fix for
fcc629208842
BSD's make doesn't support some of the features.
Christian Heimes [Thu, 6 Sep 2012 22:55:33 +0000 (00:55 +0200)]
Issue #15591 and Issue #11715: silence output of setup.py when make is run with -s option.
Christian Heimes [Thu, 6 Sep 2012 16:02:49 +0000 (18:02 +0200)]
Issue #15591: run ctypes' configure in quiet mode when setup.py runs silently
Antoine Pitrou [Wed, 5 Sep 2012 22:59:49 +0000 (00:59 +0200)]
Issue #13992: The trashcan mechanism is now thread-safe. This eliminates
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 3.2.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 3.2.3 and earlier. However, extension modules
compiled for 3.2.3 and earlier will be loadable by 3.2.4.
Antoine Pitrou [Wed, 5 Sep 2012 18:11:49 +0000 (20:11 +0200)]
Issue #15841: The readable(), writable() and seekable() methods of BytesIO
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
Alexander Belopolsky [Mon, 3 Sep 2012 20:29:11 +0000 (16:29 -0400)]
Issue #15855: added docstrings for memoryview methods and data descriptors.
R David Murray [Mon, 3 Sep 2012 16:30:12 +0000 (12:30 -0400)]
#15509: If %action substitution produces a null string, drop it.
Patch by Anton Barkovsky, comment addition by me.
This showed up as a bug in 3.3 because the definition for Chrome
produced such an empty string. This fix is tested in 3.3+;
backporting the new test suite is more trouble than it is worth.
Benjamin Peterson [Sun, 2 Sep 2012 20:36:01 +0000 (16:36 -0400)]
put * in the normal place
Benjamin Peterson [Sun, 2 Sep 2012 18:38:08 +0000 (14:38 -0400)]
move variable decl to the top of the function
Benjamin Peterson [Sun, 2 Sep 2012 18:23:15 +0000 (14:23 -0400)]
prevert ast errors from being normalized before ast_error_finish is called (closes #15846)
Petri Lehtinen [Sat, 1 Sep 2012 11:22:36 +0000 (14:22 +0300)]
#15802: Fix test logic in TestMaildir.test_create_tmp
R David Murray [Sat, 1 Sep 2012 02:45:20 +0000 (22:45 -0400)]
#12776,#11839: call argparse type function only once.
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
Trent Nelson [Fri, 31 Aug 2012 21:11:39 +0000 (17:11 -0400)]
Remove trailing whitespace in order to silence warnings on HP-UX.
Andrew Svetlov [Fri, 31 Aug 2012 10:54:54 +0000 (13:54 +0300)]
Issue #15825: fix typo in OrderedDict docs.
Patch by Mike Hoy.
Trent Nelson [Thu, 30 Aug 2012 14:32:02 +0000 (14:32 +0000)]
Issue #15819: Fix out-of-tree builds from a readonly source.
Antoine Pitrou [Wed, 29 Aug 2012 22:29:24 +0000 (00:29 +0200)]
Issue #15800: fix the closing of input / output files when gzip is used as a script.
Ezio Melotti [Wed, 29 Aug 2012 14:50:42 +0000 (17:50 +0300)]
Add missing comma.
Benjamin Peterson [Tue, 28 Aug 2012 21:55:35 +0000 (17:55 -0400)]
use the stricter PyMapping_Check (closes #15801)
Matthias Klose [Tue, 28 Aug 2012 17:07:38 +0000 (19:07 +0200)]
- fix paste error (whitespace) from previous commit
Matthias Klose [Tue, 28 Aug 2012 16:55:07 +0000 (18:55 +0200)]
- Issue #15591: Fix parsing MAKEFLAGS in the sharedmods target.
Petri Lehtinen [Tue, 28 Aug 2012 04:08:44 +0000 (07:08 +0300)]
#11964: Document a change in v3.2 to the json indent parameter
Petri Lehtinen [Mon, 27 Aug 2012 17:27:30 +0000 (20:27 +0300)]
Fix a JSON doc typo
Ezio Melotti [Mon, 27 Aug 2012 07:00:05 +0000 (10:00 +0300)]
#15788: fix broken links in subprocess doc. Patch by Chris Rebert.
Ronald Oussoren [Sat, 25 Aug 2012 09:19:14 +0000 (11:19 +0200)]
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
Georg Brandl [Sat, 25 Aug 2012 08:11:57 +0000 (10:11 +0200)]
Fix wrong way of adding Error information in shutil.copytree.
Mark Dickinson [Fri, 24 Aug 2012 19:31:33 +0000 (20:31 +0100)]
Remove overeager test (don't depend on the sign of a nan; cf. issue #14521)
Mark Dickinson [Fri, 24 Aug 2012 18:51:00 +0000 (19:51 +0100)]
Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.
Mark Dickinson [Fri, 24 Aug 2012 18:32:13 +0000 (19:32 +0100)]
Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs.
Antoine Pitrou [Fri, 24 Aug 2012 17:49:08 +0000 (19:49 +0200)]
Add glossary references
Antoine Pitrou [Fri, 24 Aug 2012 17:37:23 +0000 (19:37 +0200)]
Issue #14674: Add a discussion of the json module's standard compliance.
Patch by Chris Rebert.
Georg Brandl [Fri, 24 Aug 2012 16:15:29 +0000 (18:15 +0200)]
Closes #9374: add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name.
R David Murray [Fri, 24 Aug 2012 15:14:13 +0000 (11:14 -0400)]
#15249: Mangle From lines correctly when body contains invalid bytes.
Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen.
Ross Lagerwall [Fri, 24 Aug 2012 11:25:59 +0000 (13:25 +0200)]
Issue 15777: Fix a refleak in _posixsubprocess.
It was exposed by
03c98d05b140 and
dbbf3ccf72e8 .
Ned Deily [Thu, 23 Aug 2012 06:27:26 +0000 (23:27 -0700)]
Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)
Ronald Oussoren [Wed, 22 Aug 2012 12:24:14 +0000 (14:24 +0200)]
Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac OS X.
This is due to an off-by-one error: the allocated buffer didn't have room for a NUL
character at the end of the mbstowcs result.
Trent Nelson [Tue, 21 Aug 2012 23:41:43 +0000 (23:41 +0000)]
Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
Ezio Melotti [Tue, 21 Aug 2012 08:38:41 +0000 (11:38 +0300)]
#15752: s/assertRaisesRegexp/assertRaisesRegex/g
Stefan Krah [Tue, 21 Aug 2012 06:16:09 +0000 (08:16 +0200)]
Issue #15736: Fix overflow in _PySequence_BytesToCharpArray().
Trent Nelson [Tue, 21 Aug 2012 01:22:59 +0000 (21:22 -0400)]
Issue #15285: Refactor connect timeout test in test_timeout.
Antoine Pitrou [Mon, 20 Aug 2012 22:07:07 +0000 (00:07 +0200)]
Issue #14954: Clarify the interaction of weak references and garbage collection.
Patch by Ethan Furman.
Petri Lehtinen [Mon, 20 Aug 2012 18:05:56 +0000 (21:05 +0300)]
#15199: Fix JavaScript's default MIME type to application/javascript
R David Murray [Mon, 20 Aug 2012 18:14:18 +0000 (14:14 -0400)]
#15742: clarify sqlite parameter substitution example.
Suggestion and patch by Mike Hoy.
Antoine Pitrou [Mon, 20 Aug 2012 17:30:46 +0000 (19:30 +0200)]
Issue #15726: Fix incorrect bounds checking in PyState_FindModule.
Patch by Robin Schreiber.
Stefan Krah [Mon, 20 Aug 2012 15:19:50 +0000 (17:19 +0200)]
Issue #15741: Fix potential NULL dereference. Found by Coverity.
Stefan Krah [Mon, 20 Aug 2012 12:36:47 +0000 (14:36 +0200)]
Issue #15738: Fix a missing NULL check in subprocess_fork_exec().
Stefan Krah [Mon, 20 Aug 2012 09:04:24 +0000 (11:04 +0200)]
Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray().
Found by Coverity.
R David Murray [Sun, 19 Aug 2012 21:26:34 +0000 (17:26 -0400)]
#13579: teach string.Formatter about 'a'.
Patch by Francisco Martín Brugué.
Andrew Svetlov [Sun, 19 Aug 2012 19:13:41 +0000 (22:13 +0300)]
Issue #15595: Fix subprocess.Popen(universal_newlines=True)
for certain locales (utf-16 and utf-32 family).
Patch by Chris Jerdonek.
Stefan Krah [Sun, 19 Aug 2012 09:20:41 +0000 (11:20 +0200)]
Check for NULL return value in PyStructSequence_NewType(). Found by Coverity.
Ned Deily [Sat, 18 Aug 2012 19:21:17 +0000 (12:21 -0700)]
Allow redemo.py to be used from the command line like other demos.
Antoine Pitrou [Sat, 18 Aug 2012 18:46:23 +0000 (20:46 +0200)]
Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.
Mark Dickinson [Sat, 18 Aug 2012 11:24:30 +0000 (12:24 +0100)]
Issue #15477: Add workaround for log1p(-0.0) on platforms where it's broken.
Eli Bendersky [Sat, 18 Aug 2012 06:50:09 +0000 (09:50 +0300)]
tutorial typo fix
R David Murray [Sat, 18 Aug 2012 00:55:21 +0000 (20:55 -0400)]
#15636: add versionadded for decodebytes
R David Murray [Sat, 18 Aug 2012 00:48:59 +0000 (20:48 -0400)]
#15355: Mention already-executing Exception in generator docs.
Patch by Chris Jerdonek.
R David Murray [Sat, 18 Aug 2012 00:39:21 +0000 (20:39 -0400)]
#15694: reflow paragraph.
R David Murray [Sat, 18 Aug 2012 00:33:54 +0000 (20:33 -0400)]
#15694: Link discussion of file objects to glossary entry.
This is analogous to the link for `flie objects` in the description of
'open' that exists in the 2.7 docs, and adds a similar link to the
io docs.
Patch by Chris Jerdonek.
Terry Jan Reedy [Fri, 17 Aug 2012 19:40:46 +0000 (15:40 -0400)]
Issue 15660: Clarify 0 prefix for width field in str.format doc.
Richard Oudkerk [Fri, 17 Aug 2012 14:02:47 +0000 (15:02 +0100)]
Issue #15412: Remove erroneous note about weakrefs
Richard Oudkerk [Fri, 17 Aug 2012 13:39:18 +0000 (14:39 +0100)]
Issue #14501: Clarify that authentication keys are byte strings
Antoine Pitrou [Thu, 16 Aug 2012 20:14:43 +0000 (22:14 +0200)]
Update the getpeercert() example with a real-world cert showing non-trivial issuer, subject and subjectAltName.
Petri Lehtinen [Thu, 16 Aug 2012 04:22:15 +0000 (07:22 +0300)]
#11062: Fix universal newline support in Babyl._install_message()
When adding a message from a binary file, \r\n was translated to
\r\r\n in the message body.
Nick Coghlan [Thu, 16 Aug 2012 04:13:07 +0000 (14:13 +1000)]
Fix str docstring
Antoine Pitrou [Wed, 15 Aug 2012 21:18:25 +0000 (23:18 +0200)]
Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly.
Patch by Serhiy Storchaka.
Sandro Tosi [Wed, 15 Aug 2012 19:37:35 +0000 (21:37 +0200)]
clarify in/not in in case of infinite iterators; thanks to Sergey Skovorodkin from docs@
R David Murray [Wed, 15 Aug 2012 15:05:36 +0000 (11:05 -0400)]
#15543: reflow paragraphs.
R David Murray [Wed, 15 Aug 2012 14:43:58 +0000 (10:43 -0400)]
#15543: glossary entry for and 'universal newlines', and links to it.
Patch by Chris Jerdonek.
Eli Bendersky [Wed, 15 Aug 2012 11:50:52 +0000 (14:50 +0300)]
merge heads in 3.2 branch
Eli Bendersky [Wed, 15 Aug 2012 11:49:49 +0000 (14:49 +0300)]
Issue #15656: fixing code sample in extending doc
Petri Lehtinen [Wed, 15 Aug 2012 11:00:40 +0000 (14:00 +0300)]
#11062: Fix adding a message from file to Babyl mailbox