Well I ran into an interesting glitch already. For a dictionary D, I can pull out a nested value using this syntax:
>>> D['b']['a']
23
and I can assign to this dictionary using
>>> D['d'] = {'a':7, 'b':0'}
but I can't assign like this:
>>> D['d']['c'] = 1
TypeError: object does not support item assignment.
hmmm.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
