Python gotchas
Got this link from Ted Leung on Python Programming pitfalls. Looks like an interesting read and explains some of the more subtle behaviours of Python. The gotcha below I find really irksome: >>> t = ([],) >>> t[0] += [2, 3] Traceback (most recent call last): File “”, line 1, in ? TypeError: object doesn’t […]