summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28183: Optimize and cleanup dict iteration.Serhiy Storchaka2016-10-091-109/+106
|
* Merge from 3.5.Serhiy Storchaka2016-10-081-3/+7
|\
| * Issue #28379: Added sanity checks and tests for PyUnicode_CopyCharacters().Serhiy Storchaka2016-10-081-3/+7
| | | | | | | | Patch by Xiang Zhang.
* | Issue #28376: Creating instances of range_iterator by calling range_iteratorSerhiy Storchaka2016-10-081-0/+7
| | | | | | | | type now is deprecated. Patch by Oren Milman.
* | Merge from 3.5.Serhiy Storchaka2016-10-081-3/+11
|\ \ | |/
| * Issue #28376: The constructor of range_iterator now checks that step is not 0.Serhiy Storchaka2016-10-081-3/+11
| | | | | | | | Patch by Oren Milman.
* | Issue #26906: Resolving special methods of uninitialized type now causesSerhiy Storchaka2016-10-081-5/+19
|\ \ | |/ | | | | implicit initialization of the type instead of a fail.
| * Issue #26906: Resolving special methods of uninitialized type now causesSerhiy Storchaka2016-10-081-5/+19
| | | | | | | | implicit initialization of the type instead of a fail.
* | Issue #18287: PyType_Ready() now checks that tp_name is not NULL.Serhiy Storchaka2016-10-071-0/+6
|\ \ | |/ | | | | Original patch by Niklas Koep.
| * Issue #18287: PyType_Ready() now checks that tp_name is not NULL.Serhiy Storchaka2016-10-071-0/+6
| | | | | | | | Original patch by Niklas Koep.
| * Merge headsSerhiy Storchaka2016-10-041-12/+13
| |\
* | | Issue #28201: Dict reduces possibility of 2nd conflict in hash table.INADA Naoki2016-10-061-16/+22
| | | | | | | | | | | | Do perturb shift after first conflict.
* | | Issue #28350: String constants with null character no longer interned.Serhiy Storchaka2016-10-041-8/+8
|\ \ \ | |/ /
| * | Issue #28350: String constants with null character no longer interned.Serhiy Storchaka2016-10-041-8/+8
| | |
* | | merge 3.5 (#26617)Benjamin Peterson2016-10-041-12/+13
|\ \ \ | | |/ | |/|
| * | ensure gc tracking is off when invoking weakref callbacks (closes #26617)Benjamin Peterson2016-10-041-12/+13
| |/
* | Issue #27358: Optimized merging var-keyword arguments and improved errorSerhiy Storchaka2016-10-021-9/+36
| | | | | | | | message when pass a non-mapping as a var-keyword argument.
* | Issue #27942: String constants now interned recursively in tuples and ↵Serhiy Storchaka2016-09-301-7/+45
|\ \ | |/ | | | | frozensets.
| * Issue #27942: String constants now interned recursively in tuples and ↵Serhiy Storchaka2016-09-301-7/+45
| | | | | | | | frozensets.
* | Issue #21578: Fixed misleading error message when ImportError called withSerhiy Storchaka2016-09-271-22/+24
|\ \ | |/ | | | | invalid keyword args.
| * Issue #21578: Fixed misleading error message when ImportError called withSerhiy Storchaka2016-09-271-22/+24
| | | | | | | | invalid keyword args.
* | Issue #27914: Fixed a comment in PyModule_ExcDef.Serhiy Storchaka2016-09-261-1/+1
| | | | | | | | Patch by Xiang Zhang.
* | issue #28144: Decrease empty_keys_struct's dk_refcntSerhiy Storchaka2016-09-261-1/+1
| | | | | | | | | | since there is no dummy_struct any more. Patch by Xiang Zhang.
* | Issue #28194: Clean up some checks in dict implementation.Serhiy Storchaka2016-09-261-10/+11
| | | | | | | | Patch by Xiang Zhang.
* | Issue #28203: Merge from 3.5Mark Dickinson2016-09-241-6/+17
|\ \ | |/
| * Issue #28203: Fix incorrect type in error message from complex(1.0, {2:3}). ↵Mark Dickinson2016-09-241-6/+17
| | | | | | | | Patch by Soumya Sharma.
* | remove unneeded castBenjamin Peterson2016-09-231-1/+1
| |
* | Issue #28214: Now __set_name__ is looked up on the class instead of theSerhiy Storchaka2016-09-211-5/+7
| | | | | | | | instance.
* | Merge 3.5Victor Stinner2016-09-211-1/+1
|\ \ | |/
| * Fix PyUnicode_FromFormatV() error handlingVictor Stinner2016-09-211-1/+1
| | | | | | | | | | Issue #28233: Fix a memory leak if the format string contains a non-ASCII character, destroy the unicode writer.
| * Issue #28189: dictitems_contains no longer swallows compare errors.Raymond Hettinger2016-09-191-1/+1
| | | | | | | | (Patch by Xiang Zhang)
* | va_end() all va_copy()ed va_lists.Christian Heimes2016-09-212-0/+5
| |
* | replace usage of Py_VA_COPY with the (C99) standard va_copyBenjamin Peterson2016-09-212-4/+3
| |
* | mergeRaymond Hettinger2016-09-191-1/+1
| |
* | correct silly spelling problemBenjamin Peterson2016-09-191-9/+9
| |
* | replace obmalloc's homegrown uptr and uchar types with standard onesBenjamin Peterson2016-09-191-42/+31
| |
* | improvements to code that checks whether Python (obmalloc) allocated an addressBenjamin Peterson2016-09-191-76/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename Py_ADDRESS_IN_RANGE to address_in_range and make it a static function instead of macro. Any compiler worth its salt will inline this function. - Remove the duplicated function version of Py_ADDRESS_IN_RANGE used when memory analysis was active. Instead, we can simply mark address_in_range as allergic to dynamic memory checking. We can now remove the __attribute__((no_address_safety_analysis)) from _PyObject_Free and _PyObject_Realloc. All the badness is contained in address_in_range now. - Fix the code that tried to only read pool->arenaindex once. Putting something in a variable is no guarantee that it won't be read multiple times. We must use volatile for that.
* | Issue #28139: Merge indentation fixes from 3.5 into 3.6Martin Panter2016-09-171-8/+12
|\ \ | |/
| * Issue #28139: Fix messed up indentationMartin Panter2016-09-171-8/+12
| | | | | | | | | | Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
* | Issue #25270: Merge from 3.5Berker Peksag2016-09-161-5/+14
|\ \ | |/
| * Issue #25270: Prevent codecs.escape_encode() from raising SystemError when ↵Berker Peksag2016-09-161-5/+14
| | | | | | | | an empty bytestring is passed
* | Unicode 9.0.0Benjamin Peterson2016-09-151-716/+857
| | | | | | | | | | Not completely mechanical since support for East Asian Width changes—emoji codepoints became Wide—had to be added to unicodedata.
* | Add _PyDict_CheckConsistency()Victor Stinner2016-09-142-6/+90
| | | | | | | | | | | | | | | | Issue #28127: Add a function to check that a dictionary remains consistent after any change. By default, tables are not checked, only basic attributes. Define DEBUG_PYDICT (ex: gcc -D DEBUG_PYDICT) to also check dictionary "content".
* | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵Christian Heimes2016-09-135-51/+51
| | | | | | | | optimize memcpy().
* | Fix _PyDict_Pop() on pending keyVictor Stinner2016-09-131-1/+1
| | | | | | | | | | | | | | Issue #28120: Fix dict.pop() for splitted dictionary when trying to remove a "pending key" (Not yet inserted in split-table). Patch by Xiang Zhang.
* | Issue #28040: Cleanup find_empty_slot()Victor Stinner2016-09-131-6/+2
| | | | | | | | find_empty_slot() only supports combined dict
* | Fix warning in _PyCFunction_FastCallKeywords()Victor Stinner2016-09-121-2/+1
| | | | | | | | Issue #28105.
* | Issue #28077: find_empty_slot() only supports combined dictVictor Stinner2016-09-121-3/+7
| |
* | Document kwnames in _PyObject_FastCallKeywords() and _PyStack_AsDict()Victor Stinner2016-09-122-0/+8
| | | | | | | | Issue #27213.
* | Revert change f860b7a775c5Victor Stinner2016-09-122-20/+8
| | | | | | | | | | Revert change "Issue #27213: Reintroduce checks in _PyStack_AsDict()", pushed by mistake.