[issue44770] float('nan') is True
Marty
report at bugs.python.org
Wed Jul 28 21:06:36 EDT 2021
New submission from Marty <vpjtqwv0101 at gmail.com>:
I know that there is numpy.isnan() for checking if a value is float('nan') but I think that native python should logically return False in bool(float('nan')).
----------
messages: 398448
nosy: vpjtqwv0101
priority: normal
severity: normal
status: open
title: float('nan') is True
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44770>
_______________________________________
More information about the Python-bugs-list
mailing list