summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_collections.py
Commit message (Collapse)AuthorAgeFilesLines
* Strengthen one of the collections.Counter() testsRaymond Hettinger2013-10-061-0/+2
|
* mergeRaymond Hettinger2013-10-041-0/+24
|\
| * Issue #18594: Make the C code more closely match the pure python code.Raymond Hettinger2013-10-041-0/+24
| |
* | Close #18690: register memoryview with Sequence ABCNick Coghlan2013-10-021-0/+2
| |
* | #18106: refactor tests to use subtests and proper assert methods. Patch by ↵Ezio Melotti2013-07-071-35/+42
| | | | | | | | Vajrasky Kok.
* | Issue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickledSerhiy Storchaka2013-05-211-2/+11
| | | | | | | | size and pickling time.
* | Undo the deprecation of _asdict().Raymond Hettinger2013-05-181-5/+2
| | | | | | | | Backed out changeset c4ca39bece9d
* | Deprecate nametuple._asdict()Raymond Hettinger2013-05-181-2/+5
| |
* | mergeRaymond Hettinger2013-05-031-0/+1
|\ \ | |/
| * Issue #15535: Fix pickling of named tuples.Raymond Hettinger2013-05-031-0/+1
| |
* | Closes #16613: Added optional mapping argument to ChainMap.new_child.Vinay Sajip2013-01-111-0/+32
|/
* Merge issue #16373: Prevent infinite recursion for ABC Set class operations.Andrew Svetlov2012-11-011-0/+33
|\ | | | | | | Patch by Serhiy Storchaka.
| * Issue #16373: Prevent infinite recursion for ABC Set class operations.Andrew Svetlov2012-11-011-0/+33
| |
* | Fix whitespaceRaymond Hettinger2011-11-051-1/+1
| |
* | MergeRaymond Hettinger2011-11-051-0/+6
|\ \ | |/
| * Improve Counter.__repr__() to not fail with unorderable valuesRaymond Hettinger2011-11-051-0/+6
| |
* | Issue #13121: Support in-place math operators for collections.Counter().Raymond Hettinger2011-10-191-0/+21
| |
* | Add support for unary plus and unary minus to collections.Counter()Raymond Hettinger2011-08-091-0/+5
| |
* | mergeRaymond Hettinger2011-06-031-1/+1
|\ \ | |/
| * Fix named tuples to work with vars().Raymond Hettinger2011-06-031-1/+1
| |
| * Backport 3.3 fixes and cleans ups.Raymond Hettinger2011-05-021-11/+19
| |
| * TestChainMap was not previously used. Minor corrections applied.Łukasz Langa2011-04-291-8/+8
| |
* | Fix minor subclassing issue with collections.CounterRaymond Hettinger2011-04-151-0/+9
|\ \ | |/
| * Fix minor subclassing issue with collections.CounterRaymond Hettinger2011-04-151-0/+9
| |\
| | * Fix minor subclassing issue with collections.CounterRaymond Hettinger2011-04-151-0/+9
| | |
| | * Backport r87613 to make OrderedDict subclassing match dict subclassing.Raymond Hettinger2011-01-041-0/+28
| | |
| | * Merged revisions 86857 via svnmerge fromAlexander Belopolsky2010-11-301-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86857 | raymond.hettinger | 2010-11-28 22:56:12 -0500 (Sun, 28 Nov 2010) | 1 line Issue #10565: Iterator ABC should require both __next__ and __iter__. ........
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| | * Issue #9826: Handle recursive repr in collections.OrderedDict.Raymond Hettinger2010-09-121-0/+7
| | |
| | * Merged revisions 84301 via svnmerge fromDaniel Stutzbach2010-08-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84301 | daniel.stutzbach | 2010-08-24 15:49:57 -0500 (Tue, 24 Aug 2010) | 1 line Issue 8750: Fixed MutableSet's methods to correctly handle reflexive operations, namely x -= x and x ^= x ........
| | * Issue #9214: Fix set operations on KeysView and ItemsView.Raymond Hettinger2010-08-221-1/+26
| | |
| | * Merged revisions 82821 via svnmerge fromMark Dickinson2010-07-111-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82821 | mark.dickinson | 2010-07-11 19:53:06 +0100 (Sun, 11 Jul 2010) | 3 lines Issue #9137: Fix issue in MutableMapping.update, which incorrectly treated keyword arguments called 'self' or 'other' specially. ........
| | * Merged revisions 81417 via svnmerge fromBenjamin Peterson2010-05-211-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81417 | benjamin.peterson | 2010-05-21 15:55:22 -0500 (Fri, 21 May 2010) | 9 lines Merged revisions 81414 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81414 | benjamin.peterson | 2010-05-21 15:51:45 -0500 (Fri, 21 May 2010) | 1 line return NotImplemented from Mapping when comparing to a non-mapping #8729 ........ ................
| | * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-72/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
| * | Add tests for the collections helper class and sync-up with py3k branch.Raymond Hettinger2011-02-231-2/+112
| | |
* | | Remove test_importable(). Couldn't see how to make this reliable across all ↵Raymond Hettinger2011-03-241-25/+0
| | | | | | | | | | | | platforms.
* | | Isolate the test_source() test in test_collectionsRaymond Hettinger2011-03-241-5/+8
| | |
* | | Add tests for _source to importable and exec'able.Raymond Hettinger2011-03-241-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | Move __name__ back out of the template; the responsibility for setting __name__ lies with the caller (which knows something about the new namespace), not with the class definition (which doesn't know about the namespace it is being built in).
* | | Expose the namedtuple source with a _source attribute.Raymond Hettinger2011-03-231-0/+1
| | |
* | | Mentioned new clear() method of MutableSequence in its doc, and added unit ↵Eli Bendersky2011-03-041-0/+38
| | | | | | | | | | | | tests for its mixin methods
* | | Add __bool__ method. Add tests. Fix-up broken test.Raymond Hettinger2011-02-261-8/+14
| | |
* | | Issue #11297: Add collections.ChainMap()Raymond Hettinger2011-02-261-2/+2
| | |
* | | Add tests for the _ChainMap helper class.Raymond Hettinger2011-02-231-0/+110
| | |
* | | Fix imports from collections.abcRaymond Hettinger2011-02-231-8/+9
|/ /
* | Make C helper function more closely match the pure python version, and add ↵Raymond Hettinger2011-01-031-1/+14
| | | | | | | | tests.
* | Fix OrderedDic.pop() to work for subclasses that define __missing__().Raymond Hettinger2011-01-011-0/+15
| |
* | Make it easier to extend OrderedDict without breaking it.Raymond Hettinger2011-01-011-0/+8
| |
* | Fix OrderedDict.setdefault() to work for subclasses that define __missing__().Raymond Hettinger2010-12-311-0/+6
| |
* | Issue #10565: Iterator ABC should require both __next__ and __iter__.Raymond Hettinger2010-11-291-2/+8
| |
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-7/+7
| |