summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update merge from 2.7: s/basetring/strBarry Warsaw2012-09-121-1/+1
|
* A follow up for issue #15906: change the test for calling the type conversionBarry Warsaw2012-09-122-5/+28
| | | | | | | | 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.
* Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to ↵Christian Heimes2012-09-121-1/+3
| | | | decref 'k' in too many error cases.
* Partly revert ad3824a90261 and add comment about reference ownershipChristian Heimes2012-09-121-2/+1
|
* Fix out of bounds read in long_new() for empty bytes with an explicit base. ↵Christian Heimes2012-09-121-2/+2
| | | | int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
* - Issue #15906: Fix a regression in argparse caused by the preceding change,Barry Warsaw2012-09-123-0/+14
| | | | when action='append', type='str' and default=[].
* #14617: clarify discussion of interrelationship of __eq__ and __hash__.R David Murray2012-09-111-13/+13
|
* Fix null pointer dereferencing in structmember.c PyMember_SetOne() for ↵Christian Heimes2012-09-111-5/+1
| | | | 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
* Fix issue #15899: Make the unicode.rst doctests pass. Patch by Chris Jerdonek.Senthil Kumaran2012-09-111-14/+13
|
* Closes #15793: Stack corruption in ssl.RAND_egd()Jesus Cea2012-09-113-7/+6
|
* #15676: mmap: add empty file check prior to offset check <- Previous patch ↵Jesus Cea2012-09-101-0/+1
| | | | was incomplete (fix 2)
* #15676: mmap: add empty file check prior to offset check <- Previous patch ↵Jesus Cea2012-09-102-5/+10
| | | | was incomplete
* #15676: Proper attribution in Misc/ACKSJesus Cea2012-09-101-0/+1
|
* Fixed memory leak in error branch of object_repr which may leak a reference ↵Christian Heimes2012-09-101-1/+3
| | | | to mod when type_name returns NULL. CID 715371
* Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s ↵Christian Heimes2012-09-101-0/+1
| | | | going out of scope leaks the storage it points to.
* #14649: clarify DocTestSuite error when there are no docstrings.R David Murray2012-09-106-6/+84
| | | | | | | Also adds tests to verify the documented behavior (which is probably a bug, as indicated in the added comments). Patch by Chris Jerdonek.
* backport from the trunk, to fix test_tools with srcdir != builddirdoko@ubuntu.com2012-09-101-2/+2
| | | | | | | | | | | | 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.
* Issue #15901: Change example to use byte string instead of stringRichard Oudkerk2012-09-101-1/+1
|
* Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641Christian Heimes2012-09-101-0/+1
|
* Closed reference leak of variable 'k' in function ste_new which wasn't ↵Christian Heimes2012-09-101-1/+2
| | | | decrefed in error cases
* Fixed possible reference leak to mod when type_name() returns NULLChristian Heimes2012-09-101-1/+3
|
* PyTuple_Pack() was missing va_end() in its error branch which lead to a ↵Christian Heimes2012-09-101-1/+3
| | | | resource leak.
* Py_TYPE() has already dereferenced self before the NULL check. Moved ↵Christian Heimes2012-09-101-1/+2
| | | | Py_TYPE() after the check for self == NULL
* Closes #15676: mmap: add empty file check prior to offset checkJesus Cea2012-09-093-0/+17
|
* Issue #15881: Added NEWS entry and proper credit.Alexander Belopolsky2012-09-092-1/+3
|
* Issue #15881: Fixed 3.2 backport.Alexander Belopolsky2012-09-091-0/+2
|
* Fixed whitespaceAlexander Belopolsky2012-09-091-1/+1
|
* Issue #15881: Fixed atexit hook in multiprocessing.Alexander Belopolsky2012-09-092-16/+39
|
* Issue #15822: Fix installation of lib2to3 grammar pickles to ensureNed Deily2012-09-093-4/+23
| | | | | they are created in the install locations and with the proper timestamp. (Solution suggested by MvL)
* #5088: document behavior of optparse defaults with 'append' action.R David Murray2012-09-081-0/+11
|
* Merge heads.Ezio Melotti2012-09-082-8/+14
|\
| * #15865: add "*" in the signature to document keyword-only args in the docs. ↵Ezio Melotti2012-09-082-8/+14
| | | | | | | | Patch by Chris Jerdonek.
* | #15510: clarify textwrap's handling of whitespace, and add confirming tests.R David Murray2012-09-082-14/+69
|/ | | | Patch by Chris Jerdonek.
* #15847: allow args to be a tuple in parse_argsR David Murray2012-09-082-1/+22
| | | | | | | | 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.
* Issue #15868: Fix refleak in bytesio.c (Coverity #715365).Stefan Krah2012-09-081-1/+3
|
* Issue #15340: Fix importing the random module when /dev/urandom cannot be ↵Antoine Pitrou2012-09-072-1/+5
| | | | | | opened. This was a regression caused by the hash randomization patch.
* Fix for fcc629208842Christian Heimes2012-09-071-9/+7
| | | | BSD's make doesn't support some of the features.
* Issue #15591 and Issue #11715: silence output of setup.py when make is run ↵Christian Heimes2012-09-061-7/+9
| | | | with -s option.
* Issue #15591: run ctypes' configure in quiet mode when setup.py runs silentlyChristian Heimes2012-09-061-0/+2
|
* Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-057-9/+140
| | | | | | | | | | | 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.
* Issue #15841: The readable(), writable() and seekable() methods of BytesIOAntoine Pitrou2012-09-056-12/+47
| | | | | and StringIO objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.
* Issue #15855: added docstrings for memoryview methods and data descriptors.Alexander Belopolsky2012-09-031-11/+43
|
* #15509: If %action substitution produces a null string, drop it.R David Murray2012-09-032-2/+12
| | | | | | | | 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.
* put * in the normal placeBenjamin Peterson2012-09-021-2/+2
|
* move variable decl to the top of the functionBenjamin Peterson2012-09-021-2/+2
|
* prevert ast errors from being normalized before ast_error_finish is called ↵Benjamin Peterson2012-09-023-0/+17
| | | | (closes #15846)
* #15802: Fix test logic in TestMaildir.test_create_tmpPetri Lehtinen2012-09-012-5/+8
|
* #12776,#11839: call argparse type function only once.R David Murray2012-09-014-7/+69
| | | | | | | | | 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.
* Remove trailing whitespace in order to silence warnings on HP-UX.Trent Nelson2012-08-311-4/+4
|
* Issue #15825: fix typo in OrderedDict docs.Andrew Svetlov2012-08-312-1/+2
| | | | Patch by Mike Hoy.