[Python-ideas] Nested dictionaries

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 29 22:37:43 CET 2014


Chris Angelico wrote:
> Alternatively, you may find it simpler and easier to use a non-nested
> dictionary.
>
> persist["window/downarr"] = blah blah

Also keep in mind that you can use tuples as keys:

    mydict['a', 'b', 'b', 'a'] = fred

-- 
Greg


More information about the Python-ideas mailing list