On 10/08/2012 10:59, Peter Otten wrote:
[...]If you have understood the above here's a little brain teaser:a = ([1,2,3],) a[0] += [4, 5]Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'tuple' object does not support item assignmenta[0]What are the contents of a[0] now?
Ha, nice. -- I have made a thing that superficially resembles music: http://soundcloud.com/eroneity/we-berated-our-own-crapiness -- http://mail.python.org/mailman/listinfo/python-list