pickle != cPickle

moonseeker at my-deja.com moonseeker at my-deja.com
Mon Jan 3 05:27:36 EST 2000


In article <Q2upQCAKRjb4EwQS at jessikat.demon.co.uk>,
  Robin Becker <robin at jessikat.demon.co.uk> wrote:
> I notice that cPickle and pickle sometimes give different results. This worries me as I thought
> these two were now strictly comparable. What sort of things can cause this? It appears they
> still give the same answer on unpickle.

Hi!

As you can find in the documentation cpickle can produce different pickled
data but the unpickled data is strictly the same you dumped. You can use
pickle to save data and cpickle to unpickle it.

Regards,
Mike


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list