> 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. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor