Martin v. Löwis <[email protected]> added the comment:
This is a near duplicate of issue7281. Most likely, copysign is behaving
correctly, and it's already the float conversion that errs.
For struct.pack('d', float('nan')), I get '\x00\x00\x00\x00\x00\x00\xf8\xff';
for -nan, I get '\x00\x00\x00\x00\x00\x00\xf8\x7f';
ISTM that this has the sign bits switched.
----------
nosy: +loewis
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14521>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com