You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered that loading code objects created by higher order functions of the form
defmake_fun(val):
deffunc(_):
returnvalreturnfunc
and pickled using cloudpickle in Python 3.7, can't be loaded back up again with load() in Python 3.8. I think this also affected dill (uqfoundation/dill#357).
A fix is suggested by one of the CPython devs here: python/cpython#12701 (comment)
This would mean making a fallback to pickle.load which is used.
I'm filing this issue so other people can see, this might be an example of why pickling for long term storage is not recommended.
The text was updated successfully, but these errors were encountered:
I discovered that loading code objects created by higher order functions of the form
and pickled using
cloudpickle
in Python 3.7, can't be loaded back up again withload()
in Python 3.8. I think this also affected dill (uqfoundation/dill#357).A fix is suggested by one of the CPython devs here: python/cpython#12701 (comment)
This would mean making a fallback to
pickle.load
which is used.I'm filing this issue so other people can see, this might be an example of why pickling for long term storage is not recommended.
The text was updated successfully, but these errors were encountered: