On Fri, Apr 01 2011, Navin Kabra wrote:

> With Python 2.6.5 (on ubuntu) I get even more bizarre behavior:
>>>> foo=(1,[2,3,4])
>>>> foo[1]+=6

Use [6] rather than 6. 

> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: 'int' object is not iterable
>>>> foo
> (1, [8, 9, 10])

[...]


-- 
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to