mirror of https://github.com/python/cpython
A better new, unique object
This commit is contained in:
parent
03459a5cd7
commit
20747fa167
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue