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

Function _reconstructor

Lib/copyreg.py:46–53  ·  view source on GitHub ↗
(cls, base, state)

Source from the content-addressed store, hash-verified

44# Support for pickling new-style objects
45
46def _reconstructor(cls, base, state):
47 if base is object:
48 obj = object.__new__(cls)
49 else:
50 obj = base.__new__(cls, state)
51 if base.__init__ != object.__init__:
52 base.__init__(obj, state)
53 return obj
54
55_HEAPTYPE = 1<<9
56_new_type = type(int.__new__)

Callers

nothing calls this directly

Calls 2

__new__Method · 0.45
__init__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…