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

Reply via email to