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

Method copy

Lib/collections/__init__.py:304–306  ·  view source on GitHub ↗

od.copy() -> a shallow copy of od

(self)

Source from the content-addressed store, hash-verified

302 return self.__class__, (), state, None, iter(self.items())
303
304 def copy(self):
305 'od.copy() -> a shallow copy of od'
306 return self.__class__(self)
307
308 @classmethod
309 def fromkeys(cls, iterable, value=None):

Callers 4

test_copyingMethod · 0.95
test_issue24347Method · 0.95
test_merge_operatorMethod · 0.95
test_patch_orderdictMethod · 0.95

Calls 1

__class__Method · 0.45

Tested by 4

test_copyingMethod · 0.76
test_issue24347Method · 0.76
test_merge_operatorMethod · 0.76
test_patch_orderdictMethod · 0.76