Message 61376 - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Content
Thanks, Tim!

Dare I suggest extending these rules to encompass things like sqrt(NaN), log(inf), etc., 
as follows:

  - return a special value in Python where IEEE-754r/C99 specifies a special value, but
doesn't raise any of the three divide-by-zero, invalid, or overflow exceptions, and
  - raise OverflowError or ValueError as appropriate where IEEE-754r specifies raising 
one of these exceptions.

So e.g. cos(infinity) should give a ValueError, while log(infinity) and exp(infinity) 
should not raise any Python exception, but should return an infinity instead.  And most 
single variable operations should return an input NaN unaltered, without raising an 
exception.