MCPcopy Index your code
hub / github.com/RustPython/RustPython / copy

Method copy

Lib/collections/__init__.py:741–743  ·  view source on GitHub ↗

Return a shallow copy.

(self)

Source from the content-addressed store, hash-verified

739 self.subtract(kwds)
740
741 def copy(self):
742 'Return a shallow copy.'
743 return self.__class__(self)
744
745 def __reduce__(self):
746 return self.__class__, (dict(self),)

Callers 6

test_copyingMethod · 0.95
__reduce__Method · 0.45
copyMethod · 0.45
__copy__Method · 0.45
copyMethod · 0.45

Calls 1

__class__Method · 0.45

Tested by 2

test_copyingMethod · 0.76