MCPcopy Index your code
hub / github.com/python/cpython / __reduce_ex__

Method __reduce_ex__

Lib/test/picklecommon.py:119–120  ·  view source on GitHub ↗
(self, proto)

Source from the content-addressed store, hash-verified

117 def __init__(self, reduce_ex=None):
118 self.reduce_ex = reduce_ex
119 def __reduce_ex__(self, proto):
120 return self.reduce_ex
121
122class REX_one(object):
123 """No __reduce_ex__ here, but inheriting it from object"""

Callers 13

_check_reduceMethod · 0.45
test_reduceMethod · 0.45
test_issue24097Method · 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
reduceex2Method · 0.45
reduceex3Method · 0.45
__reduce_ex__Method · 0.45

Calls

no outgoing calls

Tested by 12

_check_reduceMethod · 0.36
test_reduceMethod · 0.36
test_issue24097Method · 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
reduceex2Method · 0.36
reduceex3Method · 0.36
test_reduce_exMethod · 0.36