summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_collections.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #16373: Prevent infinite recursion for ABC Set class comparisons.Serhiy Storchaka2013-12-061-0/+29
|
* Issue #18015: Fix unpickling of 2.7.3 and 2.7.4 namedtuples.Raymond Hettinger2013-05-271-1/+43
|
* Issue #15535: Fix regression in pickling of named tuples.Raymond Hettinger2013-05-031-1/+1
|
* Fix named tuples to work with vars().Raymond Hettinger2011-06-031-1/+1
|
* Fix minor subclassing issue with collections.CounterRaymond Hettinger2011-04-151-0/+9
|
* Raymond-Hettingers-MacBook-Pro:py27 raymondhettinger$ cat svn-commit.tmpRaymond Hettinger2011-01-021-0/+28
| | | | | | Backport r87594 r87611 and r87612 so that OrderedDict subclassing behavior better matches dict subclassing (i.e. adding __missing__ works and extending/overriding the update() methods doesn't break __init__()).
* Merged revisions 86857 via svnmerge fromAlexander Belopolsky2010-11-301-2/+13
| | | | | | | | | | 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-7/+7
| | | | | | | | | | 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: OrderedDict.__repr__ did not play well with self-referencing dicts.Raymond Hettinger2010-09-131-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 #9626: Fix views in collections.OrderedDict().Raymond Hettinger2010-08-171-0/+6
|
* 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. ........
* return NotImplemented from Mapping when comparing to a non-mapping #8729Benjamin Peterson2010-05-211-1/+48
|
* Add subtract() method to collections.Counter() objects.Raymond Hettinger2010-04-031-0/+11
|
* #7624: Fix isinstance(foo(), collections.Callable) for old-style classes.Florent Xicluna2010-03-081-2/+30
|
* Issue 6292: for the moment at least, the test suite passes if runR. David Murray2010-02-231-1/+7
| | | | | | with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch.
* Remove unused imports in test modules.Georg Brandl2010-02-071-2/+1
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-24/+24
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-7/+8
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-4/+2
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-2/+4
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-67/+67
|
* Revert r73401 per Raymond Hettinger's request.Alexandre Vassalotti2009-06-121-2/+2
| | | | | | The rational is the change might cause imcompatiblity problems with PyYAML. In addition, Raymond wants to kept the different versions of collections synchronized across Python versions.
* Make pickling of OrderedDict instances more efficient.Alexandre Vassalotti2009-06-121-2/+2
|
* Fix field name conflicts for named tuples.Raymond Hettinger2009-05-271-0/+40
|
* 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
|
* * Add clearer comment to initialization code.Raymond Hettinger2009-03-191-0/+7
| | | | | | * Add optional argument to popitem() -- modeled after Anthon van der Neut's C version. * Fix method markup in docs.
* Backport 70140, 70141, 70143, and 70144.Raymond Hettinger2009-03-031-0/+17
| | | | | Adds tests, switches from list to deque, fixes __reduce__ which was unnecessarily copying __keys.
* Beef-up tests.Raymond Hettinger2009-03-031-3/+6
|
* Backport PEP 372: OrderedDict()Raymond Hettinger2009-03-031-3/+192
|
* Backport 69934: Register xrange() as a Sequence.Raymond Hettinger2009-02-241-0/+3
|
* Issue 1818: collections.namedtuple() to support automatic renaming of ↵Raymond Hettinger2009-02-101-0/+11
| | | | invalid fieldnames.
* Issue 4920: Fixed next() vs __next__() issues in the ABCsRaymond Hettinger2009-01-281-2/+63
| | | | | for Iterator and MutableSet. Also added thorough test for required abstractmethods.
* 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.
* Build-outs for Counter() class:Raymond Hettinger2009-01-201-1/+44
| | | | | | * Constructor and update() support keyword args (like their dict counterparts). * The 'del' statement no longer raises KeyError for missing values. * Add multiset operations: __add__, __sub__, __and__, __or__.
* Add tests for __init__() and update() with no args.Raymond Hettinger2009-01-141-0/+2
|
* Simplify Counter() API. Replace items keyword argumentRaymond Hettinger2009-01-131-4/+4
| | | | | | | with a mapping. Makes Counter() idempotent, makes update() API the same as Counter.__init__(), makes a more readable repr, makes the API more dict-like, and allows Steven Bethard's update() example to work.
* Issue 1696199: Add collections.Counter().Raymond Hettinger2009-01-121-2/+98
|
* Fix namedtuple bug reported by Glenn Linderman. Template did not form ↵Raymond Hettinger2008-09-251-0/+5
| | | | correctly if the field names were input in Unicode.
* Issue 2235: Py3k warnings are now emitted for classes that will no longer ↵Nick Coghlan2008-08-111-0/+1
| | | | inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
* Issue 3161: Missing import and test.Raymond Hettinger2008-06-231-0/+15
|
* Issue3065: Fixed pickling of named tuples. Added tests.Raymond Hettinger2008-06-091-1/+20
|
* Take namedtuple item names only from ascii_letters (this blew up on OSX),Georg Brandl2008-05-181-1/+3
| | | | and make sure there are no duplicate names.
* A DocTestSuite cannot run multiple times: it clears its globals dictionary ↵Amaury Forgeot d'Arc2008-04-021-3/+2
| | | | | | after the first run. Rebuild the DocTestSuite on each iteration.
* Run doctests on the collections moduleRaymond Hettinger2008-01-111-2/+4
|
* Add error-checking to namedtuple's _replace() method.Raymond Hettinger2008-01-051-0/+7
|
* Improve namedtuple's _cast() method with a docstring, new name, and ↵Raymond Hettinger2008-01-051-4/+7
| | | | error-checking.
* Minor fix-ups to named tuples:Raymond Hettinger2008-01-041-8/+1
| | | | | | | | | * Make the _replace() method respect subclassing. * Using property() to make _fields read-only wasn't a good idea. It caused len(Point._fields) to fail. * Add note to _cast() about length checking and alternative with the star-operator.