Message58780
| Author |
gvanrossum |
| Recipients |
Rhamphoryncus, christian.heimes, gvanrossum, tim.peters |
| Date |
2007年12月18日.22:19:55 |
| SpamBayes Score |
0.0810881 |
| Marked as misclassified |
No |
| Message-id |
<ca471dc20712181419w6877193dmda458e8c011a6bc8@mail.gmail.com> |
| In-reply-to |
<1198014996.32.0.0211756767442.issue1635@psf.upfronthosting.co.za> |
| Content |
> 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. |
|