Message230400
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 |
|
Date |
User |
Action |
Args |
2014-10-31 22:18:47 | rhettinger | set | recipients:
+ rhettinger, pitrou, r.david.murray, ethan.furman, Joshua.Chin |
2014-10-31 22:18:47 | rhettinger | set | messageid: <1414793927.69.0.820697411791.issue22766@psf.upfronthosting.co.za> |
2014-10-31 22:18:47 | rhettinger | link | issue22766 messages |
2014-10-31 22:18:47 | rhettinger | create | |
|