[Python-Dev] Customization docs

Guido van Rossum guido@python.org
Sat, 01 Jun 2002 11:27:48 -0400


> Well, _I_ would have expected this to work:
> 
> 	Python 2.1 (#4, Jun  6 2001, 08:54:49)
> 	[GCC 2.95.2 19991024 (release)] on linux2
> 	Type "copyright", "credits" or "license" for more information.
> 	>>> x = ([],[],[])
> 	>>> x[1] += [1]
> 	Traceback (most recent call last):
> 	  File "<stdin>", line 1, in ?
> 	TypeError: object doesn't support item assignment

Yes, but that can't be fixed without breaking other things.  Too bad.
It's not like this is an important use case in real life.

--Guido van Rossum (home page: http://www.python.org/~guido/)