mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
A better new, unique object
This commit is contained in:
parent
03459a5cd7
commit
20747fa167
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue