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 mark.dickinson
Recipients christian.heimes, mark.dickinson
Date 2008-05-17.14:45:18
SpamBayes Score 0.0114699
Marked as misclassified No
Message-id <1211035519.55.0.418759026234.issue2900@psf.upfronthosting.co.za>
In-reply-to
Content
This is fine.  copysign isn't supposed to propagate NaNs---it's just 
supposed to silently transfer the sign bit from the second argument to the 
first.  So I think this is correct behaviour.

Incidentally, on OS X:

>>> from math import copysign
>>> copysign(1, float('nan'))
-1.0

This is also fine, IMO.  It just so happens that on OS X the 'default' NaN 
has its sign bit set.
History
Date User Action Args
2008-05-17 14:45:19mark.dickinsonsetspambayes_score: 0.0114699 -> 0.0114699
recipients: + mark.dickinson, christian.heimes
2008-05-17 14:45:19mark.dickinsonsetspambayes_score: 0.0114699 -> 0.0114699
messageid: <1211035519.55.0.418759026234.issue2900@psf.upfronthosting.co.za>
2008-05-17 14:45:18mark.dickinsonlinkissue2900 messages
2008-05-17 14:45:18mark.dickinsoncreate