Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_copying
Method · 0.95
test_inplace_operations
Method · 0.95
__reduce__
Method · 0.45
copy
Method · 0.45
__copy__
Method · 0.45
copy
Method · 0.45
Calls
1
__class__
Method · 0.45
Tested by
2
test_copying
Method · 0.76
test_inplace_operations
Method · 0.76