Hash map with multiple keys per value ?

Bengt Richter bokr at oz.net
Sun Nov 13 19:56:02 EST 2005


On Fri, 11 Nov 2005 22:55:53 +0000, Chris Stiles <b9a9-3arx at spamex.com> wrote:

>Hi --
>
>I'm working on something that includes the concept of multiple aliases for a
>particular object, where a lookup for any of the aliases has to return all the
>others.  The hack way of doing this was to have a dictionary where each 
>entry consisted of a list of all the aliases - with multiple references to the
>same list from the various dictionary entries corresponding to each alias.
>
>Is there an easier and cleaner way of doing this ?  Is there example code
>floating around that I might have a look at ?
>
[OT about on-T missing post]
I see my post on google
    http://groups.google.com/group/comp.lang.python/msg/7d6056940048f1b6
but I haven't seen it yet on my newsreader. Is it not showing for anyone
else either? I am wondering what's happening. Usually it's only a matter
of minutes, not a day and counting ;-/

Regards,
Bengt Richter



More information about the Python-list mailing list