[issue12330] Named set methods on collections.Set and dict view objects

R. David Murray report at bugs.python.org
Tue Jun 14 02:24:22 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

collections.Set (in python 3.3, collections.abc.Set) is the *definition* of the minimal API.  To construct a class that conforms to the minimal definition is certainly easier than constructing one that supports all of the methods that the set builtin does.

I suppose it would be possible for the collections module to provide a 'SetMixin' or some such that provided implementations of the other methods in terms of the required methods, but that would definitely be a feature request, and probably a topic that should be discussed first on the python-ideas mailing list.

----------
resolution:  -> invalid
stage:  -> committed/rejected

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12330>
_______________________________________


More information about the Python-bugs-list mailing list