[issue11986] Min/max not symmetric in presence of NaN
Alexander Belopolsky
report at bugs.python.org
Tue May 3 20:46:42 CEST 2011
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Tue, May 3, 2011 at 2:41 PM, Raymond Hettinger
<report at bugs.python.org> wrote:
..
> Undefined ordering means just that.
Means what? Compare float behavior to
Decimal('1')
>>> Decimal(1).max(Decimal('nan'))
Decimal('1')
>>> max(Decimal('1'), Decimal('nan'))
Traceback (most recent call last):
..
decimal.InvalidOperation: comparison involving NaN
Raymond, you don't really need to stop the debate 4 minutes after the
bug has been reported.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11986>
_______________________________________
More information about the Python-bugs-list
mailing list