How can i retrieve a key from a dictionary?

Prabhu Ramachandran prabhu at
Sun Nov 4 19:01:59 CET 2001

>>>>> "HJ" == Husam <h.jehadalwan at> 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


More information about the Python-list mailing list