[issue1635] Float patch for inf and nan on Windows (and other platforms)

Guido van Rossum report at bugs.python.org
Tue Dec 18 23:19:55 CET 2007


Guido van Rossum added the comment:

> Historical note:  Guido is probably thinking of "the old" pickle and
> marshal here, which did have problems with inf and NaN on Windows (as in
> they didn't work at all).  Michael Hudson changed them to use special
> bit patterns instead, IIRC for Python 2.5.

In pickle.py, protocol 0 (still the default in 2.6) uses repr(x) to
write a float and float(s) to convert that back to input. Maybe you're
thinking of marshal, which is more sophisticated.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1635>
__________________________________


More information about the Python-bugs-list mailing list