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

Function _deepcopy_dict

tools/python-3.11.9-amd64/Lib/copy.py:227–232  ·  view source on GitHub ↗
(x, memo, deepcopy=deepcopy)

Source from the content-addressed store, hash-verified

225d[tuple] = _deepcopy_tuple
226
227def _deepcopy_dict(x, memo, deepcopy=deepcopy):
228 y = {}
229 memo[id(x)] = y
230 for key, value in x.items():
231 y[deepcopy(key, memo)] = deepcopy(value, memo)
232 return y
233d[dict] = _deepcopy_dict
234if PyStringMap is not None:
235 d[PyStringMap] = _deepcopy_dict

Callers

nothing calls this directly

Calls 3

deepcopyFunction · 0.85
idFunction · 0.50
itemsMethod · 0.45

Tested by

no test coverage detected