mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-43907: add missing memoize call in pure python pickling of bytearray (GH-25501)
This commit is contained in:
parent
f24e2e5464
commit
1e9f093309
3 changed files with 13 additions and 0 deletions
|
|
@ -818,6 +818,7 @@ class _Pickler:
|
|||
self._write_large_bytes(BYTEARRAY8 + pack("<Q", n), obj)
|
||||
else:
|
||||
self.write(BYTEARRAY8 + pack("<Q", n) + obj)
|
||||
self.memoize(obj)
|
||||
dispatch[bytearray] = save_bytearray
|
||||
|
||||
if _HAVE_PICKLE_BUFFER:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue