pickle broken: can't handle NaN or Infinity under win32
mwh at python.net
Tue Jul 5 15:59:12 CEST 2005
"Terry Reedy" <tjreedy at udel.edu> writes:
> "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.
If you use a binary protocol for pickle, yes.
Java sucks. [...] Java on TV set top boxes will suck so hard it
might well inhale people from off their sofa until their heads
get wedged in the card slots. --- Jon Rabone, ucam.chat
More information about the Python-list