[Python-Dev] MutableSet and Set named methods
Guido van Rossum
guido at python.org
Wed Mar 25 00:44:31 CET 2009
On Tue, Mar 24, 2009 at 4:38 PM, Raymond Hettinger <python at rcn.com> wrote:
> Does anyone remember the reason that most of the named methods were omitted
> from the ABC for mutablesets and sets? The update() method in particular
> would be nice to have.
Because it's the same as +=, and if you want it as a callable, you can
use operator.__ior__? :-)
(And frozen sets don't have it.)
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list