This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Joshua.Chin, ethan.furman, pitrou, r.david.murray, rhettinger
Date 2014-10-31.22:18:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414793927.69.0.820697411791.issue22766@psf.upfronthosting.co.za>
In-reply-to
Content
Note, the += operation is conceptually similar to update() methods with are usually duck typeable:

>>> d = {}
>>> d.update(1)
Traceback (most recent call last):
  File "<pyshell#16>", line 1, in <module>
    d.update(1)
TypeError: 'int' object is not iterable

>>> s = set()
>>> s.update(1)
Traceback (most recent call last):
  File "<pyshell#18>", line 1, in <module>
    s.update(1)
TypeError: 'int' object is not iterable

>>> dict(1)
Traceback (most recent call last):
  File "<pyshell#19>", line 1, in <module>
    dict(1)
TypeError: 'int' object is not iterable
History
Date User Action Args
2014-10-31 22:18:47rhettingersetrecipients: + rhettinger, pitrou, r.david.murray, ethan.furman, Joshua.Chin
2014-10-31 22:18:47rhettingersetmessageid: <1414793927.69.0.820697411791.issue22766@psf.upfronthosting.co.za>
2014-10-31 22:18:47rhettingerlinkissue22766 messages
2014-10-31 22:18:47rhettingercreate