pickle broken: can't handle NaN or Infinity under win32
Terry Reedy
tjreedy at udel.edu
Wed Jun 22 15:01:51 EDT 2005
"Grant Edwards" <grante at visi.com> wrote in message
news:11bja5bienakv68 at corp.supernews.com...
> 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.
>
> A perhaps simpler approach would be to define a string
> representation for Python to use for NaN and Inf. Just because
> something isn't defined by the C standard doesn't mean it can't
> be defined by Python.
I believe that changes have been made to marshal/unmarshal in 2.5 CVS with
respect to NAN/INF to eliminate annoying/surprising behavior differences
between corresponding .py and .pyc files. Perhaps these revisions would be
relevant to pickle changes.
TJR
More information about the Python-list
mailing list