diff --git a/Lib/pickle.py b/Lib/pickle.py index d77e33e8443..a22580b7bdc 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