pickle broken: can't handle NaN or Infinity under win32

Scott David Daniels Scott.Daniels at Acm.Org
Wed Jun 22 14:44:20 EDT 2005


Grant Edwards wrote:
> I'm working on it.  I should have said it's trivial if you have
> access to the platforms to be supported.  I've tested a fix
> that supports pickle streams generated under Win32 and glibc.
> That's using the "native" string representation of a NaN or
> Inf.
Several issues:
(1) The number of distinct NaNs varies among platforms.  There are
     quiet and signaling NaNs, negative 0, the NaN that Windows VC++
     calls "Indeterminate," and so on.
(2) There is no standard-conforming way to create these values.
(3) There is no standard-conforming way to detect these values.

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list