[Pythonmac-SIG] change in cPickle format?

Just van Rossum just@letterror.com
Thu, 21 Oct 1999 21:00:58 +0200


At 11:19 AM -0700 10/21/99, Joseph J. Strout wrote:
>I'm having trouble with a pickle file which was created under
>MacPython 1.5.2b1.  I can't seem to load it now, as shown here:
>
>	>>> f = open(_fontprefix + ":metrics.dat")
>	>>> cPickle.load(f)
>	Traceback (innermost last):
>	  File "<input>", line 1, in ?
>	EOFError:
>
>Has the cPickle format changed?  Or has this file simply gotten
>corrupted somehow?

Erm, shouldn't you open that file in binary mode?

Just