[Numpy-discussion] numpy pickling problem - python 2 vs. python 3

Charles R Harris charlesr.harris at gmail.com
Fri Mar 6 12:51:52 EST 2015

On Fri, Mar 6, 2015 at 10:34 AM, Sebastian <sebix at sebix.at> wrote:

> Hash: SHA256
> Hi all,
> As this also affects .npy files, which uses pickle internally, why can't
> this be done by Numpy itself? This breaks backwards compatibility in a
> very bad way in my opinion.
> The company I worked for uses Numpy and consorts a lot and also has many
> data in .npy and pickle files. They currently work with 2.7, but I also
> tried to develop my programs to be compatible with Py 3. But this was
> not possible when it came to the point of dumping and loading npy files.
> I think this will be major reason why people won't take the step forward
> to Py3 and Numpy is not considered to be compatible to Python 3.

Are you suggesting adding a flag to the files to mark the python version in
which they were created? The *.npy format is versioned, so something could
probably be done with that.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150306/a005aa6a/attachment.html>

More information about the NumPy-Discussion mailing list