Commit Graph

36 Commits

Author SHA1 Message Date
Raymond Hettinger
1a7c3571c7 Issue #24286: Register dict views with the MappingView ABCs. 2015-05-26 01:35:54 -07:00
Serhiy Storchaka
20994f1e27 Issue #22609: Constructors and update methods of mapping classes in the
collections module now accept the self keyword argument.
2014-11-27 19:02:56 +02:00
Raymond Hettinger
809b665b57 Fix guidance for subclassing collections.Set() 2014-07-03 00:30:52 +01:00
Raymond Hettinger
f643b9a9c7 Issue 8743: Improve interoperability between sets and the collections.Set abstract base class. 2014-05-25 22:13:41 -07:00
Serhiy Storchaka
7c573857c7 Issue #16373: Prevent infinite recursion for ABC Set class comparisons. 2013-12-06 23:23:15 +02:00
Raymond Hettinger
cce5b04c75 Add missing docstrings to the collections ABCs 2013-03-24 14:54:25 -07:00
Alexander Belopolsky
1fea5c4472 Merged revisions 86857 via svnmerge from
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__.
........
2010-11-30 01:18:17 +00:00
Daniel Stutzbach
9128732de6 Merged revisions 84301 via svnmerge from
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
........
2010-08-24 21:09:30 +00:00
Raymond Hettinger
917bba1f2a Issue #9214: Fix set operations on KeysView and ItemsView. 2010-08-22 08:01:58 +00:00
Mark Dickinson
42add99f77 Merged revisions 82821 via svnmerge from
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.
........
2010-07-11 19:17:28 +00:00
Benjamin Peterson
eb318d3b16 return NotImplemented from Mapping when comparing to a non-mapping #8729 2010-05-21 20:51:45 +00:00
Florent Xicluna
47627d5164 #7624: Fix isinstance(foo(), collections.Callable) for old-style classes. 2010-03-08 15:20:28 +00:00
Raymond Hettinger
fceb5d478f Issue 6037: MutableSequence.__iadd__ should return self. 2009-05-18 15:51:59 +00:00
Raymond Hettinger
66c4a6b51c Issue #5647: MutableSet.__iand__() no longer mutates self during iteration. 2009-04-01 18:50:56 +00:00
Raymond Hettinger
b31a6d0949 Give mapping views a usable repr. 2009-02-27 08:09:47 +00:00
Raymond Hettinger
8c56f8890e Backport 69934: Register xrange() as a Sequence. 2009-02-24 12:23:23 +00:00
Raymond Hettinger
f779e6f51b Issue 4920: Fixed next() vs __next__() issues in the ABCs
for Iterator and MutableSet.  Also added thorough test for
required abstractmethods.
2009-01-28 23:02:26 +00:00
Raymond Hettinger
2d21d50c10 Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard().
Needs to be backported to 2.6 and forward ported to 3.0 and 3.1.
2009-01-13 09:08:32 +00:00
Nick Coghlan
48361f5cbf Issue 2235: Py3k warnings are now emitted for classes that will no longer 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. 2008-08-11 15:45:58 +00:00
Raymond Hettinger
4c52f52ef3 Issue 3161: Missing import and test. 2008-06-23 03:29:28 +00:00
Georg Brandl
60fbf7f8bb #3057: Fix the MutableMapping ABC to use the 2.6 dict interface. 2008-06-07 17:03:28 +00:00
Raymond Hettinger
10ac19bedc Issue 2226: Callable checked for the wrong abstract method. 2008-03-03 22:19:58 +00:00
Raymond Hettinger
972fb077a0 Remove dependency on itertools -- a simple genexp suffices. 2008-03-03 22:04:55 +00:00
Georg Brandl
d2f7680b8f Actually import itertools. 2008-03-03 21:22:47 +00:00
Raymond Hettinger
2cd9bf5e7c Metaclass declaration is inherited 2008-02-09 10:04:19 +00:00