summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * 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.
* | Close issue #6210: Implement PEP 409Nick Coghlan2012-02-261-11/+18
| |
* | #14081: The sep and maxsplit parameter to str.split, bytes.split, and ↵Ezio Melotti2012-02-263-24/+36
| | | | | | | | bytearray.split may now be passed as keyword arguments.
* | - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-253-570/+2312
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and lifetime issues of dynamically allocated Py_buffer members (#9990) as well as crashes (#8305, #7433). Many new features have been added (See whatsnew/3.3), and the documentation has been updated extensively. The ndarray test object from _testbuffer.c implements all aspects of PEP-3118, so further development towards the complete implementation of the PEP can proceed in a test-driven manner. Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review and many ideas. - Issue #12834: Fix incorrect results of memoryview.tobytes() for non-contiguous arrays. - Issue #5231: Introduce memoryview.cast() method that allows changing format and shape without making a copy of the underlying memory.
* | Close #14095: type.__new__() doesn't remove __qualname__ key from the classVictor Stinner2012-02-251-85/+70
| | | | | | | | | | dict anymore if the key is present. Reject also non-string qualified names. And fix reference leaks in type.__new__().
* | Oops, revert unwanted changesVictor Stinner2012-02-241-18/+6
| |
* | Issue #14107: fix bigmem tests on str.capitalize(), str.swapcase() andVictor Stinner2012-02-241-6/+18
| | | | | | | | | | str.title(). Compute correctly how much memory is required for the test (memuse).
* | Fix compilation error under Windows (and warnings too).Antoine Pitrou2012-02-241-9/+9
| |
* | Issue #13706: Fix format(float, "n") for locale with non-ASCII decimal point ↵Victor Stinner2012-02-241-5/+16
| | | | | | | | (e.g. ps_aF)
* | Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separatorVictor Stinner2012-02-239-83/+81
| | | | | | | | | | | | | | | | | | | | | | * Decode thousands separator and decimal point using PyUnicode_DecodeLocale() (from the locale encoding), instead of decoding them implicitly from latin1 * Remove _PyUnicode_InsertThousandsGroupingLocale(), it was not used * Change _PyUnicode_InsertThousandsGrouping() API to return the maximum character if unicode is NULL * Replace MIN/MAX macros by Py_MIN/Py_MAX * stringlib/undef.h undefines STRINGLIB_IS_UNICODE * stringlib/localeutil.h only supports Unicode
* | Fix doc of an internal function: unicode_write_cstr()Victor Stinner2012-02-221-2/+3
| |
* | Fix compile failure under WindowsAntoine Pitrou2012-02-221-1/+1
| |
* | Optimize str%arg for number formats: %i, %d, %u, %x, %pVictor Stinner2012-02-221-4/+52
| | | | | | | | | | Write a specialized function to write an ASCII/latin1 C char* string into a Python Unicode string.
* | Micro-optimize computation of maxchar in PyUnicode_TransformDecimalToASCII()Victor Stinner2012-02-221-2/+2
| |
* | Micro-optimize unicode_expandtabs(): use FILL() macro to write N spacesVictor Stinner2012-02-221-5/+2
| |
* | PyUnicode_New() and unicode_putchar() check for MAX_UNICODE maximum (U+10FFFF)Victor Stinner2012-02-221-0/+2
| |
* | merge 3.2Benjamin Peterson2012-02-212-0/+2
|\ \ | |/
| * 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
| | |
* | | update to Unicode 6.1Benjamin Peterson2012-02-211-1166/+1273
| | |
* | | Forgot the "empty string -> hash == 0" special case for strings.Georg Brandl2012-02-201-0/+8
| | |
* | | Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-202-6/+19
|\ \ \ | |/ /
| * | 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.
* | | check for NULL to fix segfaultBenjamin Peterson2012-02-201-1/+1
| | |
* | | use new generic __dict__ descriptor implementationsBenjamin Peterson2012-02-202-90/+4
| | |
* | | add generic implementation of a __dict__ descriptor for C typesBenjamin Peterson2012-02-202-18/+46
| | |
* | | initialize __dict__ if neededBenjamin Peterson2012-02-191-6/+12
| | |
* | | use defaultsBenjamin Peterson2012-02-191-3/+3
| | |
* | | merge 3.2Benjamin Peterson2012-02-191-3/+1
|\ \ \ | |/ /
| * | use Py_CLEARBenjamin Peterson2012-02-191-3/+1
| | |
* | | allow arbitrary attributes on classmethod and staticmethod (closes #14051)Benjamin Peterson2012-02-191-3/+27
| | |
* | | Issue #13020: Fix a reference leak when allocating a structsequence object ↵Antoine Pitrou2012-02-151-12/+13
|\ \ \ | |/ / | | | | | | | | | | | | fails. Patch by Suman Saha.
| * | 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.
* | | (Merge 3.2) Issue #13913: normalize utf-8 codec name in UTF-8 decoderVictor Stinner2012-02-141-1/+1
|\ \ \ | |/ /
| * | Issue #13913: normalize utf-8 codec name in UTF-8 decoderVictor Stinner2012-02-141-1/+1
| | |
* | | merge 3.2Benjamin Peterson2012-02-101-1/+1
|\ \ \ | |/ /
| * | this is only a borrowed ref in Brett's branchBenjamin Peterson2012-02-101-1/+1
| | |
* | | Backout d2c1521ad0a1: _Py_IDENTIFIER() uses UTF-8 againVictor Stinner2012-02-071-2/+3
| | |
* | | merge 3.2Benjamin Peterson2012-02-061-1/+0
|\ \ \ | |/ /
| * | bltinmod is borrowed, so it shouldn't be decrefedBenjamin Peterson2012-02-061-1/+0
| | |
* | | _Py_Identifier are always ASCII stringsVictor Stinner2012-02-051-3/+2
| | |
* | | merge 3.2Benjamin Peterson2012-02-041-5/+10
|\ \ \ | |/ /
| * | put returns on their own linesBenjamin Peterson2012-02-041-5/+10
| | |
* | | merge 3.2 (closes #13908)Benjamin Peterson2012-01-301-1/+5
|\ \ \ | |/ /
| * | 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.