[issue22089] collections.MutableSet does not provide update method

Guido van Rossum report at bugs.python.org
Wed Jul 30 03:38:14 CEST 2014


Guido van Rossum added the comment:

Oh the joy of duck typing. :-(

If anything, set should be made to behave more like MutableSet by allowing arbitrary iterable arguments to the __i**__ methods.

I do not think it is a good idea to add all of the named versions of the methods to the ABC (even if it could be done by making then concrete methods implemented in terms of the operations).  If you want to work with arbitrary MutableSet objects you should restrict yourself to the operations defined by MutableSet.

----------

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


More information about the Python-bugs-list mailing list