A better new, unique object

This commit is contained in:
Jeremy Hylton 2001-11-09 16:15:04 +00:00
parent 03459a5cd7
commit 20747fa167

View File

@ -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