Re: [IronPython] Pickle bug

2008-09-04 Thread Curt Hagenlocher
Yes, we should probably change this to use System.Double.ToString('G17') On Thu, Sep 4, 2008 at 7:41 AM, Christian Muirhead < [EMAIL PROTECTED]> wrote: > Michael Foord wrote: > >> Pickle on IronPython doesn't preserve sufficient information to unpickle >> floats accurately: >> >> CPython: >> >>>

Re: [IronPython] Pickle bug

2008-09-04 Thread Christian Muirhead
Michael Foord wrote: Pickle on IronPython doesn't preserve sufficient information to unpickle floats accurately: CPython: >>> a = 1 /3.0 >>> import cPickle as pickle >>> pickle.loads(pickle.dumps(a)) == a (Michael meant to say that this was True) IronPython: >>> import cPickle as pickle

[IronPython] Pickle bug

2008-09-04 Thread Michael Foord
Pickle on IronPython doesn't preserve sufficient information to unpickle floats accurately: CPython: >>> a = 1 /3.0 >>> import cPickle as pickle >>> pickle.loads(pickle.dumps(a)) == a IronPython: >>> import cPickle as pickle >>> a = 1 /3.0 >>> pickle.loads(pickle.dumps(a)) == a False This is a