summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_collections.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
| * 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
| |
* | 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
| |
* | Issue 9865: add __sizeof__ to OrderedDict.Raymond Hettinger2010-09-161-0/+6
| |
* | Issue #9826: Handle recursive repr in collections.OrderedDict.Raymond Hettinger2010-09-121-0/+7
| |
* | Add method to OrderedDict for repositioning keys to the ends.Raymond Hettinger2010-09-061-1/+13
| |
* | Issue 8750: Fixed MutableSet's methods to correctly handle reflexive ↵Daniel Stutzbach2010-08-241-0/+15
| | | | | | | | operations, namely x -= x and x ^= x
* | Issue #9214: Fix set operations on KeysView and ItemsView.Raymond Hettinger2010-08-221-1/+26
| |
* | Issue #9507: Named tuple repr will now automatically display the rightRaymond Hettinger2010-08-081-0/+10
| | | | | | | | name in a tuple subclass.
* | Issue #9137: Fix issue in MutableMapping.update, which incorrectlyMark Dickinson2010-07-111-0/+13
| | | | | | | | treated keyword arguments called 'self' or 'other' specially.
* | Merged revisions 81414 via svnmerge fromBenjamin Peterson2010-05-211-1/+48
| | | | | | | | | | | | | | | | | | | | 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 ........
* | Add a subtract() method to collections.Counter()Raymond Hettinger2010-04-031-0/+10
| |
* | Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-1/+0
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
* | Backport the tests only.Florent Xicluna2010-03-081-0/+17
| | | | | | | | | | | | | | | | | | | | | | Merged revisions 78800 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78800 | florent.xicluna | 2010-03-08 16:20:28 +0100 (lun, 08 mar 2010) | 2 lines #7624: Fix isinstance(foo(), collections.Callable) for old-style classes. ........
* | Merged revisions 78351 via svnmerge fromR. David Murray2010-02-241-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78351 | r.david.murray | 2010-02-22 19:24:49 -0500 (Mon, 22 Feb 2010) | 5 lines Issue 6292: for the moment at least, the test suite passes if run with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch. ........
* | Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-27/+27
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
* | use assert[Not]In where appropriateEzio Melotti2010-01-231-2/+2
| |
* | use assert[Not]In where appropriateBenjamin Peterson2010-01-191-5/+6
| | | | | | | | A patch from Dave Malcolm.
* | convert old fail* assertions to assert*Benjamin Peterson2009-06-301-72/+72
|/
* Stronger tests for namedtuple() to prevent future name conflict errors.Raymond Hettinger2009-05-271-0/+31
|
* Fix field name conflicts for named tuples.Raymond Hettinger2009-05-271-0/+9
|
* Have namedtuple's field renamer assign names thatRaymond Hettinger2009-04-021-6/+6
| | | | are consistent with the corresponding tuple index.
* Issue #5647: MutableSet.__iand__() no longer mutates self during iteration.Raymond Hettinger2009-04-011-0/+25
|
* Forward port r70470 and r70473 for OrderedDict to use a doubly linked list.Raymond Hettinger2009-03-191-0/+7
|
* Additional test for __reduce__.Raymond Hettinger2009-03-031-0/+8
|
* Add another test.Raymond Hettinger2009-03-031-0/+9
|
* PEP 372: OrderedDict()Raymond Hettinger2009-03-021-3/+194
|
* range() should have been registered as a Sequence.Raymond Hettinger2009-02-241-0/+2
| | | | Needs to be backported to 2.6, 2.7, and 3.0.
* Merged revisions 69466,69480 via svnmerge fromBenjamin Peterson2009-02-101-0/+11
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69466 | raymond.hettinger | 2009-02-09 12:39:41 -0600 (Mon, 09 Feb 2009) | 3 lines Issue 5171: itertools.product docstring missing 'repeat' argument ........ r69480 | raymond.hettinger | 2009-02-09 19:24:05 -0600 (Mon, 09 Feb 2009) | 1 line Issue 1818: collections.namedtuple() to support automatic renaming of invalid fieldnames. ........
* Beef-up tests for collections ABCs.Raymond Hettinger2009-01-281-2/+63
|
* Tighten-up the docs for Counter().Raymond Hettinger2009-01-211-0/+5
|
* Simplify explanation of multiset operations by removing restrictions on ↵Raymond Hettinger2009-01-211-8/+9
| | | | negative inputs.