set using alternative hash function?

Carl Banks pavlovevidence at gmail.com
Fri Oct 16 20:55:32 EDT 2009


On Oct 15, 9:31 pm, Austin Bingham <austin.bing... at gmail.com> wrote:
> Yes, what you've got there provides the interface of what I want. And
> no doubt we could concoct countless ways to implement some version of
> this. However, if set itself accepted an alternate hash function, then
> I could do it with no extra overhead. Consider your implementation: it
> requires an extra set (extra space) and an extra lookup on many
> operations (extra time.) My original hope was to not have to do that.

Yes, Python let you down.  You've said that repeatedly.  Most people
are happy to accept the extra overhead of homemade solution.  You're
not.  We get it.


If you want to do something about it, write a patch with some test
cases and submit it.

If you want to do something half-assed about it, submit hash= key as a
wishlist item.

If you want to do absolutely nothing about it, continue to whine about
it here.


Carl Banks



More information about the Python-list mailing list