SIGN IN SIGN UP

gh-148914: Fix memoization of in-band PickleBuffer in the Python implementation (GH-149052)

Previously, identical PickleBuffers did not preserve identity.
Also, empty writable PickleBuffer memoized an empty bytearray object
in place of b'' which is a singleton in CPython, so the following
references to b'' were unpickled as an empty bytearray object.
S
Serhiy Storchaka committed
b89735625dff07005c31bdc86cbe7113ef1b59d0
Parent: e635ad2
Committed by GitHub <noreply@github.com> on 5/2/2026, 9:04:05 AM