Message157939
The pickle output has the sign-bit set. Ignoring the sign-bit, it is unpickled correctly. However math.copysign using this value will now return minus on platforms where copysign(3., float('nan')) is known to work.
Perhaps the whole can of worms should not have been opened in the first place.
Another solution would be to raise a ValueError if copysign(x, float('nan')) is called... |
|
Date |
User |
Action |
Args |
2012-04-10 09:13:06 | mattip | set | recipients:
+ mattip, loewis, mark.dickinson, eric.smith, serhiy.storchaka |
2012-04-10 09:13:06 | mattip | set | messageid: <1334049186.77.0.789197869267.issue14521@psf.upfronthosting.co.za> |
2012-04-10 09:13:06 | mattip | link | issue14521 messages |
2012-04-10 09:13:06 | mattip | create | |
|