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.

Author ddicato
Recipients ddicato, georg.brandl
Date 2010-02-16.22:41:38
SpamBayes Score 3.2123884e-05
Marked as misclassified No
Message-id <1266360101.13.0.863363643677.issue7947@psf.upfronthosting.co.za>
In-reply-to
Content
The standard library documentation for the math module states "All functions return a quiet NaN if at least one of the args is NaN." However, there are some exceptions to this rule, including:

math.pow(1.0, float('nan')) == 1.0
math.hypot(float('inf'), float('nan')) == float('inf')
abs(complex(float('nan'), float('inf'))) == float('inf')

The docs should be updated to reflect that such corner cases exist.
History
Date User Action Args
2010-02-16 22:41:41ddicatosetrecipients: + ddicato, georg.brandl
2010-02-16 22:41:41ddicatosetmessageid: <1266360101.13.0.863363643677.issue7947@psf.upfronthosting.co.za>
2010-02-16 22:41:39ddicatolinkissue7947 messages
2010-02-16 22:41:39ddicatocreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.