commit | 1e9f0933095403b215c2c4a0be7915d034ff7026 | [log] [tgz] |
---|---|---|
author | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | Fri Apr 23 23:27:14 2021 +0200 |
committer | GitHub <noreply@github.com> | Fri Apr 23 23:27:14 2021 +0200 |
tree | 3e243c4244ac286f67c62ef23f913da769975acb | |
parent | f24e2e5464ba6498e7b8d73c3f9b417d59fd1b26 [diff] [blame] |
bpo-43907: add missing memoize call in pure python pickling of bytearray (GH-25501)
diff --git a/Lib/pickle.py b/Lib/pickle.py index e63a8b6..5ab312f 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py
@@ -818,6 +818,7 @@ def save_bytearray(self, obj): 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: