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

Method copy

tools/python-3.11.9-amd64/Lib/collections/__init__.py:1173–1184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1171 return inst
1172
1173 def copy(self):
1174 if self.__class__ is UserDict:
1175 return UserDict(self.data.copy())
1176 import copy
1177 data = self.data
1178 try:
1179 self.data = {}
1180 c = copy.copy(self)
1181 finally:
1182 self.data = data
1183 c.update(self)
1184 return c
1185
1186 @classmethod
1187 def fromkeys(cls, iterable, value=None):

Callers

nothing calls this directly

Calls 3

UserDictClass · 0.85
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected