[issue44370] Inconsistent results for min() and max() with math.nan as argument

Raymond Hettinger report at bugs.python.org
Sun Jun 13 05:23:18 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> Maybe add two key functions for making NaN either the smallest
> or the largest number?

SQL does this with NULLS FIRST or NULLS LAST but it is a nuisance.  I think it better to opt for simplicity and choose a default.

----------

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


More information about the Python-bugs-list mailing list