Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | merge 3.2 | Benjamin Peterson | 2012-02-21 | 2 | -0/+2 |
|\ | |||||
| * | ensure no one tries to hash things before the random seed is found | Benjamin Peterson | 2012-02-21 | 2 | -0/+2 |
| | | |||||
* | | Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵ | Georg Brandl | 2012-02-20 | 3 | -2/+24 |
|\ \ | |/ | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior. | ||||
| * | Issue #13703: add a way to randomize the hash values of basic types (str, ↵ | Georg Brandl | 2012-02-20 | 3 | -2/+24 |
| | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior. | ||||
* | | use Py_CLEAR | Benjamin Peterson | 2012-02-19 | 1 | -3/+1 |
| | | |||||
* | | Fix indentation | Antoine Pitrou | 2012-02-15 | 1 | -12/+12 |
| | | |||||
* | | Issue #13020: Fix a reference leak when allocating a structsequence object ↵ | Antoine Pitrou | 2012-02-15 | 1 | -0/+1 |
| | | | | | | | | | | | | fails. Patch by Suman Saha. | ||||
* | | Issue #13913: normalize utf-8 codec name in UTF-8 decoder | Victor Stinner | 2012-02-14 | 1 | -1/+1 |
| | | |||||
* | | this is only a borrowed ref in Brett's branch | Benjamin Peterson | 2012-02-10 | 1 | -1/+1 |
| | | |||||
* | | bltinmod is borrowed, so it shouldn't be decrefed | Benjamin Peterson | 2012-02-06 | 1 | -1/+0 |
| | | |||||
* | | put returns on their own lines | Benjamin Peterson | 2012-02-04 | 1 | -5/+10 |
| | | |||||
* | | ready types returned from PyType_FromSpec | Benjamin Peterson | 2012-01-30 | 1 | -0/+3 |
| | | |||||
* | | adjust declaration | Benjamin Peterson | 2012-01-30 | 1 | -1/+2 |
| | | |||||
* | | Issue #13848: open() and the FileIO constructor now check for NUL characters ↵ | Antoine Pitrou | 2012-01-29 | 1 | -0/+13 |
| | | | | | | | | | | | | in the file name. Patch by Hynek Schlawack. | ||||
* | | Issue #13889: Add missing _Py_SET_53BIT_PRECISION_* calls around uses of ↵ | Mark Dickinson | 2012-01-27 | 1 | -0/+5 |
| | | | | | | | | dtoa.c functions in float round. | ||||
* | | Fix #13834: strip() strips leading and trailing whitespace. | Georg Brandl | 2012-01-22 | 1 | -1/+1 |
| | | |||||
* | | Fix refleaks in test_capi | Antoine Pitrou | 2012-01-18 | 1 | -3/+7 |
| | | | | | | | | (this was easier than I thought!) | ||||
* | | Fix leaking a RuntimeError objects when creating sub-interpreters | Antoine Pitrou | 2012-01-18 | 1 | -21/+23 |
| | | |||||
* | | Consolidate the occurrances of the prime used as the multiplier when hashing | Gregory P. Smith | 2012-01-14 | 3 | -3/+3 |
| | | | | | | | | | | | | | | to a single #define instead of having several copies in several files. This excludes the Modules/ tree (datetime and expat both have a copy for their own purposes with no need for it to be the same). | ||||
* | | fix possible if unlikely leak | Benjamin Peterson | 2011-12-20 | 1 | -1/+5 |
| | | |||||
* | | Small clarification in docstring of dict.update(): the positional argument ↵ | Georg Brandl | 2011-12-18 | 1 | -3/+3 |
| | | | | | | | | is not required. | ||||
* | | Issue #11231: Fix bytes and bytearray docstrings | Victor Stinner | 2011-12-17 | 2 | -10/+9 |
| | | | | | | | | Patch written by Brice Berna. | ||||
* | | Fix the fix for issue #12149: it was incorrect, although it had the side | Antoine Pitrou | 2011-12-15 | 1 | -8/+10 |
| | | | | | | | | | | effect of appearing to resolve the issue. Thanks to Mark Shannon for noticing. | ||||
* | | Issue #13093: Fix error handling on PyUnicode_EncodeDecimal() | Victor Stinner | 2011-11-22 | 1 | -6/+4 |
| | | | | | | | | | | * Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII() * Remove the unused "e" variable in replace() | ||||
* | | Issue #13333: The UTF-7 decoder now accepts lone surrogates | Antoine Pitrou | 2011-11-15 | 1 | -9/+5 |
| | | | | | | | | (the encoder already accepts them). | ||||
* | | Issue #13161: fix doc strings of __i*__ operators | Eli Bendersky | 2011-11-11 | 1 | -10/+10 |
| | | |||||
* | | Revert "Accept None as start and stop parameters for list.index() and ↵ | Petri Lehtinen | 2011-11-06 | 2 | -22/+7 |
| | | | | | | | | | | | | tuple.index()" Issue #13340. | ||||
* | | Accept None as start and stop parameters for list.index() and tuple.index() | Petri Lehtinen | 2011-11-05 | 2 | -7/+22 |
| | | | | | | | | Closes #13340. | ||||
* | | remove unused variable | Benjamin Peterson | 2011-10-30 | 1 | -1/+1 |
| | | |||||
* | | Fix the return value of set_discard (issue #10519) | Petri Lehtinen | 2011-10-30 | 1 | -2/+3 |
| | | |||||
* | | Avoid unnecessary recursive function calls (closes #10519) | Petri Lehtinen | 2011-10-30 | 1 | -2/+2 |
| | | |||||
* | | Issue #13018: Fix reference leaks in error paths in dictobject.c. | Petri Lehtinen | 2011-10-24 | 1 | -4/+12 |
| | | | | | | | | Patch by Suman Saha. | ||||
* | | Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵ | Nick Coghlan | 2011-10-23 | 1 | -20/+41 |
| | | | | | | | | metaclass inheritance. Patch by Daniel Urban. | ||||
* | | adjust braces a bit | Benjamin Peterson | 2011-10-19 | 1 | -5/+4 |
| | | |||||
* | | Issue #13188: When called without an explicit traceback argument, | Antoine Pitrou | 2011-10-18 | 1 | -0/+5 |
| | | | | | | | | | | generator.throw() now gets the traceback from the passed exception's `__traceback__` attribute. Patch by Petri Lehtinen. | ||||
* | | plug possible refleak (closes #13199) | Benjamin Peterson | 2011-10-17 | 1 | -1/+5 |
| | | |||||
* | | Issue #12911: Fix memory consumption when calculating the repr() of huge ↵ | Antoine Pitrou | 2011-10-06 | 3 | -85/+185 |
| | | | | | | | | | | | | | | tuples or lists. This introduces a small private API for this common pattern. The issue has been discovered thanks to Martin's huge-mem buildbot. | ||||
* | | Issue #12973: Fix undefined-behaviour-inducing overflow check in list_repeat. | Mark Dickinson | 2011-09-19 | 1 | -3/+3 |
| | | |||||
* | | Issue #12963: PyLong_AsSize_t() now returns (size_t)-1 in all error cases. | Stefan Krah | 2011-09-12 | 1 | -3/+3 |
| | | |||||
* | | Fix PyUnicode_AsWideCharString() doc: size doesn't contain the null character | Victor Stinner | 2011-09-06 | 1 | -5/+5 |
| | | | | | | | | Fix also spelling of the null character. | ||||
* | | make sure to initialize the method wrapper type | Benjamin Peterson | 2011-09-01 | 2 | -6/+6 |
| | | |||||
* | | #9200: The str.is* methods now work with strings that contain non-BMP ↵ | Ezio Melotti | 2011-08-22 | 1 | -41/+60 |
| | | | | | | | | characters even in narrow Unicode builds. | ||||
* | | Issue #12791: Break reference cycles early when a generator exits with an ↵ | Antoine Pitrou | 2011-08-20 | 1 | -0/+11 |
| | | | | | | | | exception. | ||||
* | | the named of the character is actually NUL | Benjamin Peterson | 2011-08-18 | 1 | -1/+1 |
| | | |||||
* | | NUL -> NULL | Benjamin Peterson | 2011-08-18 | 1 | -1/+1 |
| | | |||||
* | | fix possible refleaks | Benjamin Peterson | 2011-08-17 | 1 | -1/+3 |
| | | |||||
* | | #12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and ↵ | Ezio Melotti | 2011-08-15 | 1 | -2/+2 |
| | | | | | | | | cased non-letter characters. | ||||
* | | in narrow builds, make sure to test codepoints as identifier characters ↵ | Benjamin Peterson | 2011-08-13 | 1 | -8/+23 |
| | | | | | | | | | | | | (closes #12732) This fixes the use of Unicode identifiers outside the BMP in narrow builds. | ||||
* | | remove duplicated type ready | Benjamin Peterson | 2011-07-30 | 1 | -3/+0 |
| | | |||||
* | | Fix closes Issue12621 - Fix docstrings of find and rfind methods of ↵ | Senthil Kumaran | 2011-07-27 | 3 | -6/+6 |
| | | | | | | | | bytes/bytearry/unicodeobject. |