Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ copy
Method
copy
Lib/_weakrefset.py:51–52 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
49
self.data.clear()
50
51
def
copy(self):
52
return
self.__class__(self)
53
54
def
pop(self):
55
while
True:
Callers
4
difference
Method · 0.95
symmetric_difference
Method · 0.95
test_weak_destroy_and_mutate_while_iterating
Method · 0.95
__iter__
Method · 0.45
Calls
1
__class__
Method · 0.45
Tested by
1
test_weak_destroy_and_mutate_while_iterating
Method · 0.76