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