Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
237
def
_deepcopy_method(x, memo):
# Copy instance methods
238
return
type(x)(x.__func__, deepcopy(x.__self__, memo))
239
d[types.MethodType] = _deepcopy_method
240
241
del d
Callers
nothing calls this directly
Calls
2
deepcopy
Function · 0.85
type
Class · 0.50
Tested by
no test coverage detected