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-May/044891.html below:

[Python-Dev] cmp(x,x)

[Python-Dev] cmp(x,x) [Python-Dev] cmp(x,x)Gustavo Niemeyer niemeyer at conectiva.com
Tue May 18 13:18:43 EDT 2004
> >>> cmp(x,x)           #   x.__cmp__() is NOT called
> 0

This is odd. We'll have problems trying to implemnt a NaN
following the convention of being not-equal to itself,
for example.

> >>> [x] == [x]         #   x.__cmp__() is NOT called
> True

This is correct, IMO.

-- 
Gustavo Niemeyer
http://niemeyer.net

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