diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-09 16:15:04 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-09 16:15:04 (GMT) |
commit | 20747fa167dc8224c01ab0ab2ece81c9c5927dec (patch) | |
tree | 431af7319ae50b18853618cb72b25db30d4d8aae | |
parent | 03459a5cd776eb5d3c7e427d4007dc1f983975b5 (diff) | |
download | cpython-20747fa167dc8224c01ab0ab2ece81c9c5927dec.zip cpython-20747fa167dc8224c01ab0ab2ece81c9c5927dec.tar.gz cpython-20747fa167dc8224c01ab0ab2ece81c9c5927dec.tar.bz2 |
A better new, unique object
-rw-r--r-- | Lib/pickle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index d77e33e..a22580b 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -577,7 +577,7 @@ class Unpickler: self.memo = {} def load(self): - self.mark = ['spam'] # Any new unique object + self.mark = object() # any new unique object self.stack = [] self.append = self.stack.append read = self.read |