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

Function _deepcopy_method

tools/python-3.11.9-amd64/Lib/copy.py:237–238  ·  view source on GitHub ↗
(x, memo)

Source from the content-addressed store, hash-verified

235 d[PyStringMap] = _deepcopy_dict
236
237def _deepcopy_method(x, memo): # Copy instance methods
238 return type(x)(x.__func__, deepcopy(x.__self__, memo))
239d[types.MethodType] = _deepcopy_method
240
241del d

Callers

nothing calls this directly

Calls 2

deepcopyFunction · 0.85
typeClass · 0.50

Tested by

no test coverage detected