MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _reconstructor

Function _reconstructor

tools/python-3.11.9-amd64/Lib/copyreg.py:47–54  ·  view source on GitHub ↗
(cls, base, state)

Source from the content-addressed store, hash-verified

45# Support for pickling new-style objects
46
47def _reconstructor(cls, base, state):
48 if base is object:
49 obj = object.__new__(cls)
50 else:
51 obj = base.__new__(cls, state)
52 if base.__init__ != object.__init__:
53 base.__init__(obj, state)
54 return obj
55
56_HEAPTYPE = 1<<9
57_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