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 mark.dickinson, rpetrov, skip.montanaro
Date 2009-11-05.13:36:30
SpamBayes Score 3.6158823e-07
Marked as misclassified No
Message-id <1257428193.01.0.233717121438.issue7251@psf.upfronthosting.co.za>
In-reply-to
Content
Skip, that looks like a float.hex failure.  I'm not sure what the 
underlying problem is here;  my best guess is that it's something to do 
with the copysign function.  Please could you tell me what the Solaris 
results are for the following interactive session? (Results shown are on 
OS X 10.5.)

Python 2.6.4+ (release26-maint:76116, Nov  5 2009, 13:30:59) 
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> (-0.0).hex()
'-0x0.0p+0'
>>> float.fromhex((-0.0).hex())
-0.0
>>> math.copysign(1.0, -0.0)
-1.0

Also, is HAVE_COPYSIGN defined in pyconfig.h?
History
Date User Action Args
2009-11-05 13:36:33mark.dickinsonsetrecipients: + mark.dickinson, skip.montanaro, rpetrov
2009-11-05 13:36:33mark.dickinsonsetmessageid: <1257428193.01.0.233717121438.issue7251@psf.upfronthosting.co.za>
2009-11-05 13:36:31mark.dickinsonlinkissue7251 messages
2009-11-05 13:36:30mark.dickinsoncreate