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 akuchling
Recipients akuchling, docs@python, mark.dickinson, python-dev, r.david.murray, sandro.tosi, terry.reedy, umedoblock
Date 2014-02-16.16:26:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392567975.6.0.548453410627.issue12211@psf.upfronthosting.co.za>
In-reply-to
Content
Actually ISTM the 'if x is NaN' sentence can also go; it seems to just copy the sign bit no matter what x and y are.

>>> from math import *
>>> nan = float('nan')
>>> neg = -nan
>>> copysign(+1, copysign(nan, neg))
-1.0
History
Date User Action Args
2014-02-16 16:26:15akuchlingsetrecipients: + akuchling, terry.reedy, mark.dickinson, r.david.murray, sandro.tosi, docs@python, python-dev, umedoblock
2014-02-16 16:26:15akuchlingsetmessageid: <1392567975.6.0.548453410627.issue12211@psf.upfronthosting.co.za>
2014-02-16 16:26:15akuchlinglinkissue12211 messages
2014-02-16 16:26:15akuchlingcreate