[Python-Dev] Re: Re: marshal / unmarshal
fredrik at pythonware.com
Sat Apr 9 18:36:48 CEST 2005
> pickle doesn't have the INF=>1.0 bug:
>>>> import pickle
> ValueError: invalid literal for float(): 1.#INF
>>>> import cPickle
> ValueError: could not convert string to float
>>>> import marshal
should I check in a fix for this?
the code in PyFloat_FromString contains lots of trickery to deal with more or less
broken literals, and more or less broken C libraries.
unfortunately, and unlike most other functions with similar names, PyFloat_FromString
takes a Python object, not a char pointer. would it be a good idea to add a variant
that takes a char*? if so, should PyFloat_FromString use the new function, or are we
avoiding that kind of refactoring for speed reasons these days?
More information about the Python-Dev