Hi All, I'd like to propose making the NumPy default pickle protocol 4, the same as the Python 3.8 default. That would have the advantage of supporting large pickles. The current default protocol is 2, last the default in Python 2.7. Thoughts? Chuck
On Sun, 2021-11-07 at 12:36 -0700, Charles R Harris wrote:
Hi All,
I'd like to propose making the NumPy default pickle protocol 4, the same as the Python 3.8 default. That would have the advantage of supporting large pickles. The current default protocol is 2, last the default in Python 2.7.
This sounds like a good idea to me to align with the lowest support Python version. The only question would be whether we have/need a workaround to save older pickles? I suppose the work-around is likely to use `pickle` directly instead of `np.save(z)`? Cheers, Sebastian
Thoughts?
Chuck _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-leave@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: sebastian@sipsolutions.net
Hi all,
Am 08.11.2021 um 19:15 schrieb Sebastian Berg <sebastian@sipsolutions.net>:
On Sun, 2021-11-07 at 12:36 -0700, Charles R Harris wrote:
Hi All,
I'd like to propose making the NumPy default pickle protocol 4, the same as the Python 3.8 default. That would have the advantage of supporting large pickles. The current default protocol is 2, last the default in Python 2.7.
This sounds like a good idea to me to align with the lowest support Python version.
Are we aligning with the highest supported pickle version supported by the lowest supported Python version, or the default version that it pickles with? As long as we have a workaround, we should go as high as possible in one go. 🤷🏻♂️
The only question would be whether we have/need a workaround to save older pickles? I suppose the work-around is likely to use `pickle` directly instead of `np.save(z)`?
I agree here — We need a workaround. I know companies that are somehow still on 2.7 and may need to pass data back and forth between old and new Python versions with janky mechanisms, including pickling. It’d be sad to see those people lost support, especially if it causes no maintenance burden.
Cheers,
Sebastian
Thoughts?
Chuck _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-leave@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: sebastian@sipsolutions.net
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-leave@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: einstein.edison@gmail.com
Best regards, Hameer Abbasi
participants (3)
-
Charles R Harris
-
Hameer Abbasi
-
Sebastian Berg