Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ update
Method
update
Lib/_weakrefset.py:70–72 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
68
self.data.discard(ref(item))
69
70
def
update(self, other):
71
for
element in other:
72
self.add(element)
73
74
def
__ior__(self, other):
75
self.update(other)
Callers
3
__init__
Method · 0.95
__ior__
Method · 0.95
test_weak_destroy_and_mutate_while_iterating
Method · 0.95
Calls
1
add
Method · 0.95
Tested by
1
test_weak_destroy_and_mutate_while_iterating
Method · 0.76