Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __reduce__
Method
__reduce__
Lib/_weakrefset.py:42–43 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
40
return
wr in self.data
41
42
def
__reduce__(self):
43
return
self.__class__, (list(self),), self.__getstate__()
44
45
def
add(self, item):
46
self.data.add(ref(item, self._remove))
Callers
nothing calls this directly
Calls
2
list
Class · 0.85
__getstate__
Method · 0.45
Tested by
no test coverage detected