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

Pauli Virtanen pav at iki.fi
Fri Mar 6 18:21:09 EST 2015


06.03.2015, 22:23, Pauli Virtanen kirjoitti:
> 06.03.2015, 20:00, Benjamin Root kirjoitti:
>> A slightly different way to look at this is one of sharing data. If I am
>> working on a system with 3.4 and I want to share data with others who may
>> be using a mix of 2.7 and 3.3 systems, this problem makes npz format much
>> less attractive.
> 
> pickle is used in npy files only if there are object arrays in them.
> Of course, savez could just decline saving object arrays.

np.load is missing the Py2-3 workaround flags that pickle.load has,
probably could be added:

https://github.com/numpy/numpy/pull/5640





More information about the NumPy-Discussion mailing list