New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Objects of uname_result Class Cannot be Successfully Pickled #86825
Comments
See the code example below. import platform
import pickle
pack = {
'uname_result': platform.uname()
}
with open('test.pickle', 'wb') as f:
pickle.dump(pack, f, protocol=pickle.HIGHEST_PROTOCOL)
with open('test.pickle', 'rb') as f:
data = pickle.load(f) It works smoothly on Python 3.8.5. However, on Python 3.9.0, the last line produces this error:
The files produced by the code snipped above are attached for reference. This was observed in macOS Catalina 10.15.7. |
See also bpo-42189. |
The PR for the related issue does address pickling. Do you expect pickles to work across Python versions? |
Hi, I somehow missed the other issue while searching for something The main issue is that files pickled with python 3.9.0 cannot be read As for expecting pickle to work across different versions: I did not On 16/12/2020 22:08, Jason R. Coombs wrote:
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: