MCPcopy Index your code
hub / github.com/python/cpython / __or__

Method __or__

Lib/weakref.py:261–266  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

259 return self
260
261 def __or__(self, other):
262 if isinstance(other, _collections_abc.Mapping):
263 c = self.copy()
264 c.update(other)
265 return c
266 return NotImplemented
267
268 def __ror__(self, other):
269 if isinstance(other, _collections_abc.Mapping):

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected