efficient updating of nested dictionaries

Josiah Carlson jcarlson at nospam.uci.edu
Mon Jan 26 02:00:17 EST 2004


> Although, that's probably kind of lame - I bet others will have much
> better suggestions. I'm interested in how other people do this too.
> Rich

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.

  - Josiah



More information about the Python-list mailing list