summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14579: Fix CVE-2012-2135: vulnerability in the utf-16 decoder after ↵Antoine Pitrou2012-07-201-31/+21
| | | | | | error handling. Patch by Serhiy Storchaka.
* Issue #15404: Refleak in PyMethodObject repr.Andrew Svetlov2012-07-201-1/+3
|
* Issue #15394: Fix ref leaks in PyModule_Create.Meador Inge2012-07-191-1/+7
| | | | Patch by Julia Lawall.
* Issue #15142: Fix reference leak when deallocating instances of types ↵Antoine Pitrou2012-06-231-0/+6
| | | | created using PyType_FromSpec().
* Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** ↵Antoine Pitrou2012-05-161-1/+1
| | | | 32) under 64-bit Windows.
* Remove tab charactersAntoine Pitrou2012-05-141-8/+8
|
* Use size_t, not ssize_t (issue #14801).Antoine Pitrou2012-05-141-1/+1
|
* fix possible refleak (closes #14752)Benjamin Peterson2012-05-081-2/+4
|
* close() doesn't take any args (closes #14717)Benjamin Peterson2012-05-031-1/+1
|
* fix calling the classmethod descriptor directly (closes #14699)Benjamin Peterson2012-05-011-3/+41
|
* don't use a slot wrapper from a different special method (closes #14658)Benjamin Peterson2012-04-241-2/+3
| | | | | | | This also alters the fix to #11603. Specifically, setting __repr__ to object.__str__ now raises a recursion RuntimeError when str() or repr() is called instead of silently bypassing the recursion. I believe this behavior is more correct.
* Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of ↵Mark Dickinson2012-04-201-3/+1
| | | | an int subclass.
* SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ↵Benjamin Peterson2012-04-181-2/+4
| | | | (closes #14612)
* merge 3.1 (#14509)Benjamin Peterson2012-04-092-0/+4
|\
| * fix build without Py_DEBUG and DNDEBUG (closes #14509)Benjamin Peterson2012-04-092-0/+4
| |
* | adjust formattingBenjamin Peterson2012-04-011-5/+5
| |
* | remove extraneous conditionBenjamin Peterson2012-04-011-6/+4
| |
* | merge headsBenjamin Peterson2012-04-011-2/+6
|\ \
| * | Issue #13019: Fix potential reference leaks in bytearray.extend().Antoine Pitrou2012-04-011-2/+6
| | | | | | | | | | | | Patch by Suman Saha.
* | | be consistent with rest of functionBenjamin Peterson2012-04-011-2/+1
|/ /
* | kill this terribly outdated commentBenjamin Peterson2012-03-261-4/+0
| |
* | Issue #14387: Do not include accu.h from Python.h.Antoine Pitrou2012-03-223-0/+3
| |
* | check to make sure the attribute is a string (#14334)Benjamin Peterson2012-03-161-0/+7
| |
* | allow cycles throught the __dict__ slot to be cleared (closes #1469629)Benjamin Peterson2012-03-081-2/+7
| | | | | | | | Patch from Armin, test from me.
* | Issue #13521: dict.setdefault() now does only one lookup for the given key, ↵Antoine Pitrou2012-02-261-42/+70
| | | | | | | | | | | | making it "atomic" for many purposes. Patch by Filip Gruszczyński.
* | merge 3.2Benjamin Peterson2012-02-212-0/+2
|\ \ | |/
| * ensure no one tries to hash things before the random seed is foundBenjamin Peterson2012-02-212-0/+2
| |
* | Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-203-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 Brandl2012-02-203-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_CLEARBenjamin Peterson2012-02-191-3/+1
| |
* | Fix indentationAntoine Pitrou2012-02-151-12/+12
| |
* | Issue #13020: Fix a reference leak when allocating a structsequence object ↵Antoine Pitrou2012-02-151-0/+1
| | | | | | | | | | | | fails. Patch by Suman Saha.
* | Issue #13913: normalize utf-8 codec name in UTF-8 decoderVictor Stinner2012-02-141-1/+1
| |
* | this is only a borrowed ref in Brett's branchBenjamin Peterson2012-02-101-1/+1
| |
* | bltinmod is borrowed, so it shouldn't be decrefedBenjamin Peterson2012-02-061-1/+0
| |
* | put returns on their own linesBenjamin Peterson2012-02-041-5/+10
| |
* | ready types returned from PyType_FromSpecBenjamin Peterson2012-01-301-0/+3
| |
* | adjust declarationBenjamin Peterson2012-01-301-1/+2
| |
* | Issue #13848: open() and the FileIO constructor now check for NUL characters ↵Antoine Pitrou2012-01-291-0/+13
| | | | | | | | | | | | in the file name. Patch by Hynek Schlawack.
* | Issue #13889: Add missing _Py_SET_53BIT_PRECISION_* calls around uses of ↵Mark Dickinson2012-01-271-0/+5
| | | | | | | | dtoa.c functions in float round.
* | Fix #13834: strip() strips leading and trailing whitespace.Georg Brandl2012-01-221-1/+1
| |
* | Fix refleaks in test_capiAntoine Pitrou2012-01-181-3/+7
| | | | | | | | (this was easier than I thought!)
* | Fix leaking a RuntimeError objects when creating sub-interpretersAntoine Pitrou2012-01-181-21/+23
| |
* | Consolidate the occurrances of the prime used as the multiplier when hashingGregory P. Smith2012-01-143-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 leakBenjamin Peterson2011-12-201-1/+5
| |
* | Small clarification in docstring of dict.update(): the positional argument ↵Georg Brandl2011-12-181-3/+3
| | | | | | | | is not required.
* | Issue #11231: Fix bytes and bytearray docstringsVictor Stinner2011-12-172-10/+9
| | | | | | | | Patch written by Brice Berna.
* | Fix the fix for issue #12149: it was incorrect, although it had the sideAntoine Pitrou2011-12-151-8/+10
| | | | | | | | | | effect of appearing to resolve the issue. Thanks to Mark Shannon for noticing.
* | Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()Victor Stinner2011-11-221-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 surrogatesAntoine Pitrou2011-11-151-9/+5
| | | | | | | | (the encoder already accepts them).