MCPcopy Create free account
hub / github.com/RustPython/RustPython / copy

Method copy

Lib/collections/__init__.py:305–307  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

303 return self.__class__, (), state, None, iter(self.items())
304
305 def copy(self):
306 'od.copy() -> a shallow copy of od'
307 return self.__class__(self)
308
309 @classmethod
310 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