Matthew Barnett <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue8847>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com