Message94925
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? |
|
Date |
User |
Action |
Args |
2009-11-05 13:36:33 | mark.dickinson | set | recipients:
+ mark.dickinson, skip.montanaro, rpetrov |
2009-11-05 13:36:33 | mark.dickinson | set | messageid: <1257428193.01.0.233717121438.issue7251@psf.upfronthosting.co.za> |
2009-11-05 13:36:31 | mark.dickinson | link | issue7251 messages |
2009-11-05 13:36:30 | mark.dickinson | create | |
|