A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-March/087562.html below:

[Python-Dev] MutableSet and Set named methods

[Python-Dev] MutableSet and Set named methods [Python-Dev] MutableSet and Set named methodsGuido 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4