summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_collections.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-26915: Test identity first in index() and count() of ↵Xiang Zhang2017-03-081-4/+13
| | | | collections.abc.Sequence (GH-553)
* Issue #28720: Add collections.abc.AsyncGenerator.Yury Selivanov2016-11-161-1/+83
|
* Issue #17941: Add a *module* parameter to collections.namedtuple()Raymond Hettinger2016-09-121-0/+4
|
* Issue 27598: Add Collections to collections.abc.Guido van Rossum2016-08-231-1/+89
| | | | Patch by Ivan Levkivskyi, docs by Neil Girdhar.
* Anti-registration of various ABC methods.Guido van Rossum2016-08-181-7/+53
| | | | | | | | | | - Issue #25958: Support "anti-registration" of special methods from various ABCs, like __hash__, __iter__ or __len__. All these (and several more) can be set to None in an implementation class and the behavior will be as if the method is not defined at all. (Previously, this mechanism existed only for __hash__, to make mutable classes unhashable.) Code contributed by Andrew Barnert and Ivan Levkivskyi.
* Issue #25628: Make namedtuple "rename" and "verbose" parameters keyword-only.Raymond Hettinger2016-08-161-0/+12
|
* Issue #27626: Merge spelling fixes from 3.5Martin Panter2016-07-281-1/+1
|\
| * Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-1/+1
| | | | | | | | Based on patch by Ville Skyttä.
* | Issue 26915: Add identity checks to the collections ABC __contains__ methods.Raymond Hettinger2016-05-051-1/+21
| |
* | Add collections.Reversible. Patch by Ivan Levkivskyi. Fixes issue #25987.Guido van Rossum2016-04-041-3/+28
|/
* Issue #25616: Tests for OrderedDict are extracted from test_collectionsSerhiy Storchaka2015-11-251-691/+12
|\ | | | | | | into separate file test_ordered_dict.
| * Issue #25616: Tests for OrderedDict are extracted from test_collectionsSerhiy Storchaka2015-11-251-307/+13
| | | | | | | | into separate file test_ordered_dict.
* | Issue #25449: Fixed a crash and leaking NULL in repr() of OrderedDict thatSerhiy Storchaka2015-11-041-0/+54
| | | | | | | | was mutated by direct calls of dict methods.
* | Issue #25449: Iterating OrderedDict with keys with unstable hash now raisesSerhiy Storchaka2015-11-041-61/+83
| | | | | | | | | | | | KeyError in C implementations as well as in Python implementation. Added tests for OrderedDict subclasses.
* | Issue #25395: Fixed crash when highly nested OrderedDict structures wereSerhiy Storchaka2015-11-011-0/+24
| | | | | | | | garbage collected.
* | Issue #25406: Fixed a bug in C implementation of OrderedDict.move_to_end()Serhiy Storchaka2015-10-141-0/+14
| | | | | | | | | | that caused segmentation fault or hang in iterating after moving several items to the start of ordered dict.
* | mergeRaymond Hettinger2015-08-301-1/+11
|\ \ | |/
| * Issue #24931: Resolve __dict__ conflict in namedtuple subclasses.Raymond Hettinger2015-08-301-1/+11
| |
* | Issue #24667: Resize odict in all cases that the underlying dict resizes.Eric Snow2015-08-071-0/+23
| |
* | Issue #24400: Resurrect inspect.isawaitable()Yury Selivanov2015-07-031-4/+8
| | | | | | | | | | | | | | | | collections.abc.Awaitable and collections.abc.Coroutine no longer use __instancecheck__ hook to detect generator-based coroutines. inspect.isawaitable() can be used to detect generator-based coroutines and to distinguish them from regular generator objects.
* | Issue #24369: Defend against key-changes during iteration.Eric Snow2015-06-041-0/+17
| |
* | Issue #24368: Support keyword arguments in OrderedDict methods.Eric Snow2015-06-031-1/+15
| |
* | Issue #24359: Check for changed OrderedDict size during iteration.Eric Snow2015-06-021-4/+0
| |
* | Issue #24348: Drop superfluous increfs/decrefs.Eric Snow2015-06-021-0/+12
| |
* | Issue #24347: Set KeyError if PyDict_GetItemWithError returns NULL.Eric Snow2015-06-021-0/+18
| |
* | Issue #16991: Do not return None from OrderedDict.__reversed__.Eric Snow2015-05-301-1/+13
| |
* | Reverting my previous commit.Yury Selivanov2015-05-301-7/+0
| | | | | | | | Something went horribly wrong when I was doing `hg rebase`.
* | Issue #16991: Add a C implementation of collections.OrderedDict.Eric Snow2015-05-301-18/+184
| |
* | Issue 24315: Make collections.abc.Coroutine derived from AwaitableYury Selivanov2015-05-291-7/+27
|\ \ | | | | | | | | | (Merge 3.5)
| * | Issue 24315: Make collections.abc.Coroutine derived from AwaitableYury Selivanov2015-05-291-7/+27
| | |
* | | Issue #24286: Forward port dict view abstract base class tests.Raymond Hettinger2015-05-261-0/+7
|/ /
* | Issue #23086: Add start and stop arguments to the Sequence.index() mixin method.Raymond Hettinger2015-05-231-0/+35
| |
* | Issue 22189: Add missing methods to UserStringRaymond Hettinger2015-05-221-2/+23
| |
* | Issue 24184: Add AsyncIterator and AsyncIterable to collections.abc.Yury Selivanov2015-05-141-1/+35
| |
* | collections.abc.tests: Remove some unnecessary code.Yury Selivanov2015-05-141-7/+4
| |
* | collections.abc: Test that if an object is a Coroutine it is also an AwaitableYury Selivanov2015-05-141-0/+16
| |
* | Issue #24064: Property() docstrings are now writeable.Raymond Hettinger2015-05-131-0/+8
| | | | | | | | (Patch by Berker Peksag.)
* | PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov2015-05-121-0/+80
| |
* | Issue #24018: Add a collections.Generator abstract base class.Raymond Hettinger2015-05-091-1/+72
| |
* | Issue 23704: Add index(), copy(), and insert() to deques. Register deques ↵Raymond Hettinger2015-03-211-1/+2
| | | | | | | | as a MutableSequence.
* | Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-45/+36
|\ \ | |/
| * Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-45/+36
| |
* | Issue #22609: Revert changes in UserDict. They conflicted with existing tests.Serhiy Storchaka2014-11-271-20/+1
|\ \ | |/
| * Issue #22609: Revert changes in UserDict. They conflicted with existing tests.Serhiy Storchaka2014-11-271-20/+1
| |
* | Issue #22609: Constructors and update methods of mapping classes in theSerhiy Storchaka2014-11-271-3/+61
|\ \ | |/ | | | | collections module now accept the self keyword argument.
| * Issue #22609: Constructors and update methods of mapping classes in theSerhiy Storchaka2014-11-271-3/+61
| | | | | | | | collections module now accept the self keyword argument.
* | PEP 479: Use the return-keyword instead of raising StopIteration inside a ↵Raymond Hettinger2014-11-231-1/+1
| | | | | | | | generators.
* | mergeRaymond Hettinger2014-05-261-4/+156
|\ \ | |/
| * Issue 8743: Improve interoperability between sets and the collections.Set ↵Raymond Hettinger2014-05-261-4/+156
| | | | | | | | abstract base class.
* | Issue 15246: Improve test coverage for collections.abc.Set. (Contributed ↵Raymond Hettinger2014-05-261-0/+53
| | | | | | | | by James King).