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 <>
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'))

This is also fine, IMO.  It just so happens that on OS X the 'default' NaN 
has its sign bit set.
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: <>
2008-05-17 14:45:18mark.dickinsonlinkissue2900 messages
2008-05-17 14:45:18mark.dickinsoncreate