Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __reduce__
Method
__reduce__
Lib/test/picklecommon.py:37–39 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
35
self.value = value
36
37
def
__reduce__(self):
38
# Shouldn't support the recursion itself
39
return
K, (self.value,)
40
41
class
WithSlots(object):
42
__slots__ = (
'a'
,
'b'
)
Callers
12
_check_reduce
Method · 0.45
test_reduce
Method · 0.45
test_object_reduce
Method · 0.45
test_pickling
Method · 0.45
test_pickling
Method · 0.45
test_pickling
Method · 0.45
test_pickling
Method · 0.45
test_pickling
Method · 0.45
reduce
Method · 0.45
iter_reduce
Method · 0.45
__reduce__
Method · 0.45
run
Method · 0.45
Calls
no outgoing calls
Tested by
11
_check_reduce
Method · 0.36
test_reduce
Method · 0.36
test_object_reduce
Method · 0.36
test_pickling
Method · 0.36
test_pickling
Method · 0.36
test_pickling
Method · 0.36
test_pickling
Method · 0.36
test_pickling
Method · 0.36
reduce
Method · 0.36
iter_reduce
Method · 0.36
run
Method · 0.36