[Tutor] Question about Dictionaries

Lee Harr missive at hotmail.com
Mon Aug 16 23:22:16 CEST 2010


> I know that I can look up the value for a particular key in a
> dictionary, but can I look up the key associated with a particular
> value?


I am using bidict in one of my projects:
http://pypi.python.org/pypi/bidict/0.1.1

It's probably a bit more complex than what I
need, but the parts I am using are working fine,
and the design of the extra features is kind of
interesting.

I think something like this should be in
the stdlib, but there is some controversy
about how exactly it should work.

 		 	   		  


More information about the Tutor mailing list