In general, Python sets don\'t seem to be designed for retrieving items by key. That\'s obviously what dictionaries are for. But is there anyway that, given a key, you can
I think you'll have the answer here:
Moving Beyond Factories in Python