[issue9314] inconsistent result when concatenating list with iterators
Alexander Belopolsky
report at bugs.python.org
Tue Jul 20 21:11:00 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Note that immutable types are consistent:
>>> x = tuple('abc')
>>> x += 'def'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can only concatenate tuple (not "str") to tuple
>>> x + 'def'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can only concatenate tuple (not "str") to tuple
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9314>
_______________________________________
More information about the Python-bugs-list
mailing list