summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28561: Clean up UTF-8 encoder: remove dead code, update comments, etc.Serhiy Storchaka2016-10-301-10/+4
| | | | Patch by Xiang Zhang.
* Merge from 3.5.Serhiy Storchaka2016-10-301-7/+22
|\
| * Backed out changeset 9f7505019767 (issue #27275).Serhiy Storchaka2016-10-301-7/+22
| |
* | Issue #28199: Microoptimized dict resizing. Based on patch by Naoki Inada.Serhiy Storchaka2016-10-291-60/+63
| |
* | Issue #28544: Pass `PyObject*` to _PyDict_Pop, not `PyDictObject*`Yury Selivanov2016-10-281-2/+6
| |
* | Issue #28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(),Serhiy Storchaka2016-10-271-0/+21
| | | | | | | | | | PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode().
* | Issue #28509: dict.update() no longer allocate unnecessary large memoryINADA Naoki2016-10-271-2/+4
| |
* | Issue #27275: Fixed implementation of pop() and popitem() methods inSerhiy Storchaka2016-10-251-22/+7
|\ \ | |/ | | | | subclasses of accelerated OrderedDict.
| * Issue #27275: Fixed implementation of pop() and popitem() methods inSerhiy Storchaka2016-10-251-22/+7
| | | | | | | | subclasses of accelerated OrderedDict.
* | Issue #28408: Fixed a leak and remove redundant code in ↵Serhiy Storchaka2016-10-251-18/+12
| | | | | | | | | | | | _PyUnicodeWriter_Finish(). Patch by Xiang Zhang.
* | Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug ↵Serhiy Storchaka2016-10-251-10/+2
|\ \ | |/ | | | | build.
| * Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug ↵Serhiy Storchaka2016-10-251-10/+2
| |\ | | | | | | | | | build.
| | * Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug ↵Serhiy Storchaka2016-10-251-10/+2
| | | | | | | | | | | | build.
* | | Issue #28214: Improved exception reporting for problematic __set_name__Serhiy Storchaka2016-10-211-1/+6
| | | | | | | | | | | | attributes.
* | | Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raisingSerhiy Storchaka2016-10-213-47/+14
| | | | | | | | | | | | | | | | | | | | | | | | new exception with setting current exception as __cause__. _PyErr_FormatFromCause(exception, format, args...) is equivalent to Python raise exception(format % args) from sys.exc_info()[1]
* | | merge 3.5 (#28454)Benjamin Peterson2016-10-161-4/+4
|\ \ \ | |/ /
| * | remove extra PyErr_Format arguments (closes #28454)Benjamin Peterson2016-10-161-4/+4
| | | | | | | | | | | | Patch from Xiang Zhang.
* | | Check return value of _PyDict_SetItemId()Christian Heimes2016-10-131-1/+4
| | |
* | | Fix _Py_normalize_encoding() commandVictor Stinner2016-10-121-3/+3
| | | | | | | | | | | | | | | It's not exactly the same than encodings.normalize_encoding(): the C function also converts to lowercase.
* | | va_end vargs2 once (closes #28417)Benjamin Peterson2016-10-121-1/+0
| | |
* | | - dictobject.c: Make dict_merge symbol a static symboldoko@ubuntu.com2016-10-111-1/+1
| | |
* | | 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
|\ \ \ | |/ /