[Python-Dev] getting rid of default object.hash (SF 660098) (original) (raw)

Barry Warsaw barry at python.org
Mon Dec 22 17:10:07 EST 2003


On Mon, 2003-12-22 at 16:04, Guido van Rossum wrote:

>>> object.hash() 135328576 >>> object.hash(42) Traceback (most recent call last): File "", line 1, in ? TypeError: expected 0 arguments, got 1 >>>

Would it be better if object.hash() raised a NotImplementedError?

-Barry



More information about the Python-Dev mailing list