24.08.2015, 01:02, Chris Laumann kirjoitti:
[clip]
> Is there documentation about the limits and workarounds for py2/py3 
> pickle/np.save/load compatibility? I haven't found anything except
> developer bug tracking discussions (eg. #4879 in github numpy).

Not sure if it's written down somewhere but:

- You should consider pickles not portable between Py2/3.

- Setting encoding='bytes' or encoding='latin1' should produce correct
results for numerical data. However, neither is "safe" because the
option also affects other data than numpy arrays that you may have
possibly saved.

- np.save/np.load are portable, as long as you don't save object arrays
or anything that gets converted to one by np.array (these are saved by
pickling)


_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to