MCPcopy 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
41class WithSlots(object):
42 __slots__ = ('a', 'b')

Callers 12

_check_reduceMethod · 0.45
test_reduceMethod · 0.45
test_object_reduceMethod · 0.45
test_picklingMethod · 0.45
test_picklingMethod · 0.45
test_picklingMethod · 0.45
test_picklingMethod · 0.45
test_picklingMethod · 0.45
reduceMethod · 0.45
iter_reduceMethod · 0.45
__reduce__Method · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by 11

_check_reduceMethod · 0.36
test_reduceMethod · 0.36
test_object_reduceMethod · 0.36
test_picklingMethod · 0.36
test_picklingMethod · 0.36
test_picklingMethod · 0.36
test_picklingMethod · 0.36
test_picklingMethod · 0.36
reduceMethod · 0.36
iter_reduceMethod · 0.36
runMethod · 0.36