mirror of
https://github.com/python/cpython.git
synced 2025-09-25 09:50:37 +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 = {}
|
self.memo = {}
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
self.mark = ['spam'] # Any new unique object
|
self.mark = object() # any new unique object
|
||||||
self.stack = []
|
self.stack = []
|
||||||
self.append = self.stack.append
|
self.append = self.stack.append
|
||||||
read = self.read
|
read = self.read
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue