Skip to content

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

Merged
pitrou merged 2 commits into
python:masterfrom
cfbolz:bpo-43907-bytearray-pickle-memoization
Apr 23, 2021
Merged

bpo-43907: add missing memoize call in pure python pickling of bytearray#25501
pitrou merged 2 commits into
python:masterfrom
cfbolz:bpo-43907-bytearray-pickle-memoization

Conversation

@cfbolz

@cfbolz cfbolz commented Apr 21, 2021

Copy link
Copy Markdown
Contributor

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

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

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

cfbolz commented Apr 23, 2021

Copy link
Copy Markdown
Contributor Author

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