set using alternative hash function?

Anthony Tolle anthony.tolle at
Thu Oct 15 16:06:40 CEST 2009

On Oct 15, 7:24 am, Austin Bingham < at> wrote:
> [snip] I'd like to create a set of these
> objects where the hashing is done on these names. [snip]

Why not use a dict?  The key would be the object name.  Pretty much
the same behavior as a set (via the key), and you can still easily
iterate over the objects.

More information about the Python-list mailing list