Skip to content

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