A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/041390.html below:

[Python-Dev] getting rid of default object.__hash__ (SF 660098)

[Python-Dev] getting rid of default object.__hash__ (SF 660098) [Python-Dev] getting rid of default object.__hash__ (SF 660098)Guido van Rossum guido at python.org
Mon Dec 22 17:13:02 EST 2003
> >   >>> object.__hash__()
> >   135328576
> >   >>> object.__hash__(42)
> >   Traceback (most recent call last):
> >     File "<stdin>", line 1, in ?
> >   TypeError:  expected 0 arguments, got 1
> >   >>>
> 
> Would it be better if object.__hash__() raised a NotImplementedError?

It can't -- it's type.__hash__(object).

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4