Skip to content
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

bpo-43907: add missing memoize call in pure python pickling of bytearray #25501

Merged
merged 2 commits into from
Apr 23, 2021
Merged

bpo-43907: add missing memoize call in pure python pickling of bytearray #25501

merged 2 commits into from
Apr 23, 2021

Conversation

cfbolz
Copy link
Contributor

@cfbolz cfbolz commented Apr 21, 2021

The pure python implementation of bytearray pickling in protocol 5 was missing the memoization call, which means that after unpickling identical bytearrays would turn into distinct objects. Found in PyPy (which uses the pickle.py implementation by default).

https://bugs.python.org/issue43907

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, thank you. Can you just add a NEWS item using the blurb tool?

@cfbolz
Copy link
Contributor Author

cfbolz commented Apr 23, 2021

Thanks for the review! added a news entry, hope it's ok like that!

@pitrou pitrou merged commit 1e9f093 into python:master Apr 23, 2021
@cfbolz cfbolz deleted the bpo-43907-bytearray-pickle-memoization branch April 24, 2021 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants