[issue8847] crash appending list and namedtuple
Matthew Barnett
report at bugs.python.org
Sat Jun 5 18:21:55 CEST 2010
Matthew Barnett <python at mrabarnett.plus.com> added the comment:
I've just found that:
[1] + foo()
crashes, but:
[1].__add__(foo())
gives:
Traceback (most recent call last):
File "<pyshell#25>", line 1, in <module>
[1].__add__(foo())
TypeError: can only concatenate list (not "foo") to list
(IDLE on Windows XP)
----------
nosy: +mrabarnett
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8847>
_______________________________________
More information about the Python-bugs-list
mailing list