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/2004-February/042591.html below:

[Python-Dev] bool does not want to be subclassed?

[Python-Dev] bool does not want to be subclassed? [Python-Dev] bool does not want to be subclassed?"Martin v. Löwis" martin at v.loewis.de
Tue Feb 17 02:55:12 EST 2004
Phillip J. Eby wrote:
> Actually, it might be even better to start with equality.  Hashing is 
> only meaningful for objects that can be tested for equality.

However, in Python, all objects can be tested for equality. So hashing
is meaningful for all objects?

It is not: it is only meaningful for objects which compare equal to the
same other objects over their lifespan.

Regards,
Martin



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