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
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