pickle broken: can't handle NaN or Infinity under win32
grante at visi.com
Thu Jun 23 04:53:23 CEST 2005
On 2005-06-22, Paul Rubin <http> wrote:
>>> Negative 0 isn't a NaN, it's just negative 0.
>> Right, but it is hard to construct in standard C.
> Huh? It's just a hex constant.
Yup. There are two ways to construct a NaN. One is to do
something like (1e300*1e300)/(1e300*1e300) and hope for the
best. The other is to assume IEEE 754 just use 7f800000 or
7fc00000 depending on whether you want a signalling or quiet
Grant Edwards grante Yow! Don't hit me!! I'm in
at the Twilight Zone!!!
More information about the Python-list