Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ clear
Method
clear
Lib/_weakrefset.py:48–49 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
46
self.data.add(ref(item, self._remove))
47
48
def
clear(self):
49
self.data.clear()
50
51
def
copy(self):
52
return
self.__class__(self)
Callers
3
test_weak_destroy_and_mutate_while_iterating
Method · 0.95
__isub__
Method · 0.45
__ixor__
Method · 0.45
Calls
no outgoing calls
Tested by
1
test_weak_destroy_and_mutate_while_iterating
Method · 0.76