How can i retrieve a key from a dictionary?
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Sun Nov 4 13:01:59 EST 2001
>>>>> "HJ" == Husam <h.jehadalwan at student.kun.nl> writes:
HJ> thanks, now i understand. by the way, if you have time to
HJ> satisfy my curuosity, what is the solution for the umbiquity
HJ> in you'r second example?
There is none. AFAIK, Python isn't psychic yet (apologies if I may be
wrong ;) so it can't figure out which one of the keys you really asked
for. OTOH, it is possible to return all the keys that have the same
value.
prabhu
More information about the Python-list
mailing list