A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2003-September/192003.html below:

Difference of hash and __hash__()

Difference of hash and __hash__() Difference of hash and __hash__()Stefan Fleiter stefan.fleiter at web.de
Tue Sep 2 14:36:21 EDT 2003
Hi,

under Python 2.2.2:

 >>> s = slice(None,5,None)
 >>> hash(s)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
TypeError: unhashable type
 >>> s.__hash__()
136775584

Can anybody explain this?

Greets,
Stefan



More information about the Python-list 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