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

Method __deepcopy__

Lib/weakref.py:151–158  ·  view source on GitHub ↗
(self, memo)

Source from the content-addressed store, hash-verified

149 __copy__ = copy
150
151 def __deepcopy__(self, memo):
152 from copy import deepcopy
153 new = self.__class__()
154 for key, wr in self.data.copy().items():
155 o = wr()
156 if o is not None:
157 new[deepcopy(key, memo)] = o
158 return new
159
160 def get(self, key, default=None):
161 try:

Callers

nothing calls this directly

Calls 4

deepcopyFunction · 0.90
__class__Method · 0.45
itemsMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected