Binary pickle portability

David Ascher da at ski.org
Wed Jul 7 18:18:16 EDT 1999


On Tue, 29 Jun 1999, Olaf Delgado wrote:

> On Tue, 29 Jun 1999, Olaf Delgado wrote:
> 
> > Lately I observed strange things when trying to unpickle a binary pickle
> > (including floating point numbers) produced on a different architecture.
> 
> Sorry, that was too quick.
> 
> After looking a bit closer, I found that the problem is probably related
> to the Numeric module (i.e., pickling matrices) and doesn't depend on
> whether binary or ordinary mode is used. So please don't bother now!
> Still, I am interested in whether people use binary pickles.

There is a bug in pickling of NumPy arrays, which I expect will be fixed
in the next release.  Binary pickles works across byte-order and byte-size
platforms (when it's bug-free =).

--david





More information about the Python-list mailing list