summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Close #14232: catch mmap() failure in new_arena() of obmallocVictor Stinner2012-03-091-3/+8
|
* refactor and avoid warningsBenjamin Peterson2012-03-091-7/+5
|
* Issue #14211: _PyObject_GenericSetAttrWithDict() keeps a strong reference toVictor Stinner2012-03-081-4/+5
| | | | | the descriptor because it may be destroyed before being used, destroyed during the update of the dict for example.
* Close #14199: _PyType_Lookup() and super_getattro() keep a strong reference toVictor Stinner2012-03-081-0/+9
| | | | the type MRO to avoid a crash if the MRO is changed during the lookup.
* merge 3.2 (#3787e896dbe9)Benjamin Peterson2012-03-081-2/+7
|\
| * allow cycles throught the __dict__ slot to be cleared (closes #1469629)Benjamin Peterson2012-03-081-2/+7
| | | | | | | | Patch from Armin, test from me.
* | make gi_running a booleanBenjamin Peterson2012-03-081-1/+1
| |
* | indicate we're not running as we leave this blockBenjamin Peterson2012-03-081-0/+1
| |
* | make delegating generators say they running (closes #14220)Benjamin Peterson2012-03-071-14/+37
| |
* | Whitespace.Stefan Krah2012-03-061-1/+1
| |
* | Remove an unused variableVictor Stinner2012-03-061-1/+0
| |
* | Close #14205: dict lookup raises a RuntimeError if the dict is modified duringVictor Stinner2012-03-061-12/+6
| | | | | | | | | | | | | | a lookup. "if you want to make a sandbox on top of CPython, you have to fix segfaults" so let's fix segfaults!
* | Merge.Stefan Krah2012-03-051-1/+0
|\ \
| * | remove f_yieldfrom access from Python (closes #13970)Benjamin Peterson2012-03-051-1/+0
| | |
* | | Issue #14181: Preserve backwards compatibility for getbufferprocs that a) doStefan Krah2012-03-051-1/+1
|/ / | | | | | | | | not adhere to the new documentation and b) manage to clobber view->obj before returning failure.
* | Issue #14181: Allow memoryview construction from an object that uses theStefan Krah2012-03-051-3/+0
| | | | | | | | getbuffer redirection scheme.
* | Close #14085: remove assertions from PyUnicode_WRITE macroVictor Stinner2012-03-041-1/+10
| | | | | | | | | | Add checks in PyUnicode_WriteChar() and convert PyUnicode_New() assertion to a test raising a Python exception.
* | 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
| | |