Ordered dictionary?
John Hunter
jdhunter at ace.bsd.uchicago.edu
Thu Jan 22 15:28:23 EST 2004
>>>>> "Leif" == Leif K-Brooks <eurleif at ecritters.biz> writes:
Leif> I need to associate a string (key) with an integer
Leif> (value). A dictionary would do the job, except for the fact
Leif> that it must be ordered. I also need to look up the value
Leif> for a specific key easily, so a list of tuples wouldn't
Leif> work.
google : python ordered dictionary
click : I'm feeling lucky
JDH
More information about the Python-list
mailing list