Returning a NaN by default has the advantage of being consistent with IEEE 754 
semantics for sequence-based operations (like `sum` and `dot`) and with 
existing Python `math` module functions like `fsum`, `prod` and `hypot`. In 
IEEE 754, the majority of operations silently return a NaN (not signalling any 
floating-point exception) when given a NaN as input.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/LOU72IHABAAMZZ2YHN2TCLKPHKRZDGEP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to