Interesting feature of Python
A friend of mine showed me this interesting feature of python:
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> a = ([], 2)
>>> a[0] += ["boy oh boy"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module> TypeError: 'tuple' object does not support item assignment
>>> a
(['boy oh boy'], 2)
>>>


