diff options
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index 541624a..5837884 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -115,6 +115,9 @@ class Pickler: self.memo = {} self.bin = bin + def clear_memo(self): + self.memo.clear() + def dump(self, object): self.save(object) self.write(STOP) |