[Python-3000] object.__hash__()
Nick Coghlan
ncoghlan at gmail.com
Fri Jul 28 16:38:52 CEST 2006
Steven Bethard wrote:
> If object.__hash__() disappeared, the hash(obj) versions would fail,
> but the same results seem to be available as hash(id(obj)).
Not in Jython - Jython's id() is expensive so the default hash() doesn't use it.
Last time the idea of getting rid of object.__hash__() came up, Guido
eventually killed the idea because nobody could come up with an acceptable
alternate spelling for the default hash.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list