efficient updating of nested dictionaries

Rich Krauter rmkrauter at yahoo.com
Tue Jan 27 02:11:39 CET 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