Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __ior__
Method
__ior__
Lib/weakref.py:422–424 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
420
d[ref(key, self._remove)] = value
421
422
def
__ior__(self, other):
423
self.update(other)
424
return
self
425
426
def
__or__(self, other):
427
if
isinstance(other, _collections_abc.Mapping):
Callers
nothing calls this directly
Calls
1
update
Method · 0.95
Tested by
no test coverage detected