A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-March/043291.html below:

[Python-Dev] Rich comparisons

[Python-Dev] Rich comparisons [Python-Dev] Rich comparisonsNeil Schemenauer nas-python at python.ca
Fri Mar 19 11:52:48 EST 2004
On Fri, Mar 19, 2004 at 12:01:31PM +0000, Michael Hudson wrote:
> >>> float('nan')
> nan
> >>> _ == _
> False

Would it help if each NaN instance was a separate object?  The above
code would still return True but code like:

    compute_something() == compute_something_else('nan')

would always return False if they both returned NaN as a result of
math operations.

  Neil

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