[New-bugs-announce] [issue47020] float('nan')==math.nan does NOT evaluate to True (as suggested by documentation).

Pablo Dumas report at bugs.python.org
Mon Mar 14 20:45:19 EDT 2022


New submission from Pablo Dumas <pablodumas94 at gmail.com>:

float('nan')==math.nan  does NOT evaluate to True (as suggested by documentation).
    On the other hand, float('inf')==math.inf  DOES evaluate to True (as suggested by documentation).

Documentation we're referring to: https://docs.python.org/3.8/library/math.html

----------
assignee: docs at python
components: Documentation
messages: 415213
nosy: docs at python, w0rthle$$
priority: normal
severity: normal
status: open
title: float('nan')==math.nan  does NOT evaluate to True (as suggested by documentation).
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47020>
_______________________________________


More information about the New-bugs-announce mailing list