list of lists, object doesn't support item assignment?

Manfred Bartz mdadd329ea at xix.com
Fri Jun 29 00:30:22 EDT 2001


>>> xy = (1,2),(2,2)
>>> print xy, xy[0]
((1, 2), (2, 2)) (1, 2)
>>> xy[1]=(3,4)
TypeError: object doesn't support item assignment

Is there a way to assign the list (3,4) to an element of xy?
What am I missing?

-- 
Manfred
----------------------------------------------------------------
NetfilterLogAnalyzer, NetCalc, whois at: <http://logi.cc/linux/>



More information about the Python-list mailing list