MutableSet and Set named methods
24 Mar
2009
24 Mar
'09
11:38 p.m.
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. RAymond
24 Mar
24 Mar
11:44 p.m.
On Tue, Mar 24, 2009 at 4:38 PM, Raymond Hettinger <python@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/)
5675
Age (days ago)
5675
Last active (days ago)
1 comments
2 participants
participants (2)
-
Guido van Rossum
-
Raymond Hettinger