Multilevel dicts/arrays v. tuples as keys? [Was: Re: Get keys from a dicionary]

Matej Cepl mcepl at redhat.com
Mon Nov 14 05:05:40 EST 2011


Dne 11.11.2011 14:31, macm napsal(a):
> def Dicty( dict[k1][k2] ):

When looking at this I returned to the question which currently rolls in 
my mind:

What's difference/advantage-disadvantage betweeng doing multi-level 
dicts/arrays like this and using tuple as a key? I.e., is it more 
Pythonic to have

dict[k1,k2]

instead?

Best, Matěj



More information about the Python-list mailing list