mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
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
Block a user