A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2010-September/104329.html below:

[Python-Dev] API for binary operations on Sets

[Python-Dev] API for binary operations on SetsRaymond Hettinger raymond.hettinger at gmail.com
Thu Sep 30 06:54:01 CEST 2010
On Sep 29, 2010, at 11:29 PM, Terry Reedy wrote:
> I do not understand this. List.__add__ is currently *more* restrictive than set ops in that it will not even accept a 'frozenlist' (aka tuple).

Sorry, that should have been __iadd__().

>>> s = range(5)
>>> s += 'abc'
>>> s
[0, 1, 2, 3, 4, 'a', 'b', 'c']


Raymond
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