summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache.Serhiy Storchaka2015-12-021-0/+5
|\
| * Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache.Serhiy Storchaka2015-12-021-0/+5
| |\
| | * Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache.Serhiy Storchaka2015-12-021-0/+5
| | |
* | | Issue #24097: Fixed crash in object.__reduce__() if slot name is freed insideSerhiy Storchaka2015-11-251-0/+3
|\ \ \ | |/ / | | | | | | __getattr__. Original patch by Antoine Pitrou.
| * | Issue #24097: Fixed crash in object.__reduce__() if slot name is freed insideSerhiy Storchaka2015-11-251-0/+3
| |\ \ | | |/ | | | | | | __getattr__. Original patch by Antoine Pitrou.
| | * Issue #24097: Fixed crash in object.__reduce__() if slot name is freed insideSerhiy Storchaka2015-11-251-0/+3
| | | | | | | | | | | | __getattr__. Original patch by Antoine Pitrou.
* | | Issue #24731: Fixed crash on converting objects with special methodsSerhiy Storchaka2015-11-253-6/+6
|\ \ \ | |/ / | | | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly.
| * | Issue #24731: Fixed crash on converting objects with special methodsSerhiy Storchaka2015-11-253-6/+6
| |\ \ | | |/ | | | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly.
| | * Issue #24731: Fixed crash on converting objects with special methodsSerhiy Storchaka2015-11-253-6/+6
| | | | | | | | | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly.
* | | Issue #25557: Refactor _PyDict_LoadGlobal()Victor Stinner2015-11-201-26/+29
| | | | | | | | | | | | | | | Don't fallback to PyDict_GetItemWithError() if the hash is unknown: compute the hash instead. Add also comments to explain the optimization a little bit.
* | | Add assertion to verify the pre-condition in the comments.Raymond Hettinger2015-11-181-0/+1
| | |
* | | Issue #25629: Move set fill/used updates out of inner loopRaymond Hettinger2015-11-171-7/+8
| | |
* | | merge 3.5 (#25630)Benjamin Peterson2015-11-161-0/+1
|\ \ \ | |/ /
| * | make the PyUnicode_FSConverter cleanup set the decrefed argument to NULL ↵Benjamin Peterson2015-11-161-0/+1
| | | | | | | | | | | | (closes #25630)
* | | Issue #24821: Refactor STRINGLIB(fastsearch_memchr_1char) and split it onSerhiy Storchaka2015-11-144-100/+121
| | | | | | | | | | | | | | | STRINGLIB(find_char) and STRINGLIB(rfind_char) that can be used independedly without special preconditions.
* | | Issue #25462: The hash of the key now is calculated only once in mostSerhiy Storchaka2015-11-131-35/+83
|\ \ \ | |/ / | | | | | | operations in C implementation of OrderedDict.
| * | Issue #25462: The hash of the key now is calculated only once in mostSerhiy Storchaka2015-11-131-35/+83
| | | | | | | | | | | | operations in C implementation of OrderedDict.
* | | Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+6
|\ \ \ | |/ / | | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
| * | Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+6
| |\ \ | | |/ | | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
| | * Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+12
| | | | | | | | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
* | | Merge 3.5.Stefan Krah2015-11-101-1/+1
|\ \ \ | |/ /
| * | Fix Visual Studio warning.Stefan Krah2015-11-101-1/+1
| | |
* | | Merge 3.5.Stefan Krah2015-11-101-1/+16
|\ \ \ | |/ /
| * | Iaaue #25598: Fix memory_hex from #9951 for non-contiguous buffers.Stefan Krah2015-11-101-1/+16
| | |
* | | Issue #24802: Merge null termination fixes from 3.5Martin Panter2015-11-073-9/+35
|\ \ \ | |/ /
| * | Issue #24802: Merge null termination fixes from 3.4 into 3.5Martin Panter2015-11-073-9/+35
| |\ \ | | |/
| | * Issue #24802: Copy bytes-like objects to null-terminated buffers if necessaryMartin Panter2015-11-073-9/+35
| | | | | | | | | | | | | | | | | | | | | | | | This avoids possible buffer overreads when int(), float(), compile(), exec() and eval() are passed bytes-like objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch by John Leitch, Serhiy Storchaka and Martin Panter.
* | | Issue #25410: Made testing that od_fast_nodes and dk_entries are in sync moreSerhiy Storchaka2015-11-061-4/+8
|\ \ \ | |/ / | | | | | | reliable.
| * | Issue #25410: Made testing that od_fast_nodes and dk_entries are in sync moreSerhiy Storchaka2015-11-061-4/+8
| | | | | | | | | | | | reliable.
* | | Issue #24726: Revert setting the value on the dict ifSerhiy Storchaka2015-11-061-1/+7
|\ \ \ | |/ / | | | | | | _odict_add_new_node() fails.
| * | Issue #24726: Revert setting the value on the dict ifSerhiy Storchaka2015-11-061-1/+7
| | | | | | | | | | | | _odict_add_new_node() fails.
* | | Issue #25558: Refactoring OrderedDict iteration.Serhiy Storchaka2015-11-061-40/+31
|\ \ \ | |/ /
| * | Issue #25558: Refactoring OrderedDict iteration.Serhiy Storchaka2015-11-061-40/+31
| | |
* | | Issue #25556: Add assertions to PyObject_GetItem() to ensure that an exceptionVictor Stinner2015-11-051-3/+8
| | | | | | | | | | | | | | | | | | | | | is raised when it returns NULL. Simplify also ceval.c: rely on the fact that PyObject_GetItem() raised an exception when it returns NULL.
* | | Issue #25449: Fixed a crash and leaking NULL in repr() of OrderedDict thatSerhiy Storchaka2015-11-041-2/+13
|\ \ \ | |/ / | | | | | | was mutated by direct calls of dict methods.
| * | Issue #25449: Fixed a crash and leaking NULL in repr() of OrderedDict thatSerhiy Storchaka2015-11-041-2/+13
| | | | | | | | | | | | was mutated by direct calls of dict methods.
* | | Issue #25449: Iterating OrderedDict with keys with unstable hash now raisesSerhiy Storchaka2015-11-041-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | KeyError in C implementations as well as in Python implementation. Added tests for OrderedDict subclasses.
| * | Issue #25449: Iterating OrderedDict with keys with unstable hash now raisesSerhiy Storchaka2015-11-041-0/+2
| | | | | | | | | | | | | | | | | | KeyError in C implementations as well as in Python implementation. Added tests for OrderedDict subclasses.
* | | Issue #25523: Merge a-to-an corrections from 3.5.Serhiy Storchaka2015-11-021-2/+2
|\ \ \ | |/ /
| * | Issue #25523: Merge a-to-an corrections from 3.4.Serhiy Storchaka2015-11-021-2/+2
| |\ \ | | |/
| | * Issue #25523: Further a-to-an corrections.Serhiy Storchaka2015-11-021-2/+2
| | |
* | | Issue #25523: Merge a-to-an corrections from 3.5Martin Panter2015-11-022-2/+2
|\ \ \ | |/ /
| * | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-022-2/+2
| |\ \ | | |/
| | * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-022-2/+2
| | | | | | | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | | Issue #25395: Fixed crash when highly nested OrderedDict structures wereSerhiy Storchaka2015-11-011-3/+14
|\ \ \ | |/ / | | | | | | garbage collected.
| * | Issue #25395: Fixed crash when highly nested OrderedDict structures wereSerhiy Storchaka2015-11-011-3/+14
| | | | | | | | | | | | garbage collected.
* | | Issue #25410: C implementation of OrderedDict now uses type(self) instead ofSerhiy Storchaka2015-10-221-31/+14
|\ \ \ | |/ / | | | | | | self.__class__ in __repr__() and __reduce__() for simplicity and reliability.
| * | Issue #25410: C implementation of OrderedDict now uses type(self) instead ofSerhiy Storchaka2015-10-221-31/+14
| | | | | | | | | | | | self.__class__ in __repr__() and __reduce__() for simplicity and reliability.
* | | Issue #25410: Fixed a memory leak in OrderedDict in the case when key's hashSerhiy Storchaka2015-10-201-1/+1
|\ \ \ | |/ / | | | | | | calculation fails.
| * | Issue #25410: Fixed a memory leak in OrderedDict in the case when key's hashSerhiy Storchaka2015-10-201-1/+1
| | | | | | | | | | | | calculation fails.