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-March/043729.html below:

[Python-Dev] Rich comparisons shortcut

[Python-Dev] Rich comparisons shortcut [Python-Dev] Rich comparisons shortcutJewett, Jim J jim.jewett at eds.com
Tue Mar 30 16:11:31 EST 2004
Version 2.215 (Mar 21, 2004) of object.c assumes that
identity implies equality.

I won't rehash the discussion about custom objects and NaN.
I do think the decision should be reasonably consistent.
The current CVS version shortcuts for == and !=, but not 
for the other operators.

Normally, 

	x == y implies 
		x <= y
		x >= y
		not x < y
		not x > y 
(in addition to)
		not x != y

I think any object that intentionally violates these rules 
is likely to also violate the (is implies ==) assumption.

-jJ

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