FYI, there is at least one library that provides bidirectional dicts: bidict. Github page: https://github.com/jab/bidict -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160212/51f22696/attachment-0001.html>