efficient updating of nested dictionaries

Rich Krauter rmkrauter at yahoo.com
Mon Jan 26 20:11:39 EST 2004


>> String concatenation is not that lame, but I'd use tuples:
>> MY_DICT[(KEY_X, KEY_Y, KEY_Z)] = FOO
>> Tuples save on string operations.


What a nice way to simplify this common task. That's great. Thanks for
the advice. 
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040126/2eba9fc8/attachment.html>


More information about the Python-list mailing list