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   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to