summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ordered_dict.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42536: GC track recycled tuples (GH-23623)Brandt Bucher2020-12-051-0/+11
| | | | | | | | | | | | | | | | Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector: - collections.OrderedDict.items - dict.items - enumerate - functools.reduce - itertools.combinations - itertools.combinations_with_replacement - itertools.permutations - itertools.product - itertools.zip_longest - zip Previously, they could have become untracked by a prior garbage collection.
* bpo-41431: Optimize dict_merge for copy (GH-21674)Inada Naoki2020-08-041-5/+6
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21451)Hai Shi2020-08-031-2/+5
|
* bpo-36144: OrderedDict Union (PEP 584) (#18967)Brandt Bucher2020-03-131-0/+43
|
* bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and ↵Pablo Galindo2020-03-021-0/+20
| | | | | | tp_clear (GH-18749) Objects do not own weak references to them directly through the __weakref__ list so these do not need to be traversed by the GC.
* bpo-15999: Clean up of handling boolean arguments. (GH-15610)Serhiy Storchaka2019-09-011-3/+3
| | | | | | * Use the 'p' format unit instead of manually called PyObject_IsTrue(). * Pass boolean value instead 0/1 integers to functions that needs boolean. * Convert some arguments to boolean only once.
* bpo-35983: skip trashcan for subclasses (GH-11841)Jeroen Demeyer2019-05-101-2/+6
| | | | | Add new trashcan macros to deal with a double deallocation that could occur when the `tp_dealloc` of a subclass calls the `tp_dealloc` of a base class and that base class uses the trashcan mechanism. Patch by Jeroen Demeyer.
* bpo-34574: Prevent OrderedDict iterators from exhaustion during pickling. ↵Sergey Fedoseev2018-10-201-0/+17
| | | | (GH-9051)
* bpo-33712: OrderedDict only creates od_fast_nodes cache if needed (GH-7349)Serhiy Storchaka2018-10-191-2/+2
|
* bpo-18533: Avoid RecursionError from repr() of recursive dictview (#4823)bennorth2018-01-261-0/+14
| | | | | | | | | | | | | | | | | dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce "..." if so. test_recursive_repr(): Check for the string rather than a RecursionError. (Test cannot be any tighter as contents are implementation-dependent.) test_deeply_nested_repr(): Add new test, replacing the original test_recursive_repr(). It checks that a RecursionError is raised in the case of a non-recursive but deeply nested structure. (Very similar to what test_repr_deep() in test/test_dict.py does for a normal dict.) OrderedDictTests: Add new test case, to test behavior on OrderedDict instances containing their own values() or items().
* Fix miscellaneous typos (#4275)luzpaz2017-11-051-1/+1
|
* Add OrderedDict test for PEP 468 (guaranteed ordered of kwargs)Raymond Hettinger2017-01-081-0/+8
|
* Merge from 3.5.Serhiy Storchaka2016-10-301-59/+0
|\
| * Backed out changeset 9f7505019767 (issue #27275).Serhiy Storchaka2016-10-301-59/+0
| |
* | Issue #27275: Fixed implementation of pop() and popitem() methods inSerhiy Storchaka2016-10-251-0/+59
|\ \ | |/ | | | | subclasses of accelerated OrderedDict.
| * Issue #27275: Fixed implementation of pop() and popitem() methods inSerhiy Storchaka2016-10-251-0/+59
| | | | | | | | subclasses of accelerated OrderedDict.
* | Try to fix sizeof unit tests on dictVictor Stinner2016-09-101-1/+2
| | | | | | | | Issue #28056 and issue #26058.
* | Issue #27576: Fix call order in OrderedDict.__init__().Eric Snow2016-09-091-0/+13
| |
* | Add a new private version to the builtin dict typeVictor Stinner2016-09-081-1/+1
| | | | | | | | | | | | | | Issue #26058: Add a new private version to the builtin dict type, incremented at each dictionary creation and at each dictionary change. Implementation of the PEP 509.
* | Implement compact dictVictor Stinner2016-09-081-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | Issue #27350: `dict` implementation is changed like PyPy. It is more compact and preserves insertion order. _PyDict_Dummy() function has been removed. Disable test_gdb: python-gdb.py is not updated yet to the new structure of compact dictionaries (issue #28023). Patch written by INADA Naoki.
* | Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-0/+6
|\ \ | |/ | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
| * Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-0/+6
| | | | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
* | Issue #25949: __dict__ for an OrderedDict instance is now created only whenSerhiy Storchaka2016-02-081-1/+3
| | | | | | | | needed.
* | Issue #25935: Garbage collector now breaks reference loops with OrderedDict.Serhiy Storchaka2016-01-191-0/+13
|\ \ | |/
| * Issue #25935: Garbage collector now breaks reference loops with OrderedDict.Serhiy Storchaka2016-01-191-0/+13
| |
* | Issue #25914: Fixed and simplified OrderedDict.__sizeof__.Serhiy Storchaka2015-12-221-0/+32
|\ \ | |/
| * Issue #25914: Fixed and simplified OrderedDict.__sizeof__.Serhiy Storchaka2015-12-221-0/+32
| |
* | Issue #25616: Tests for OrderedDict are extracted from test_collectionsSerhiy Storchaka2015-11-251-0/+8
|/ | | | into separate file test_ordered_dict.
* Issue #25616: Tests for OrderedDict are extracted from test_collectionsSerhiy Storchaka2015-11-251-17/+398
| | | | into separate file test_ordered_dict.
* Issue #25616: Tests for OrderedDict are extracted from test_collectionsSerhiy Storchaka2015-11-251-0/+302
into separate file test_ordered_dict.