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

Method __or__

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

Source from the content-addressed store, hash-verified

424 return self
425
426 def __or__(self, other):
427 if isinstance(other, _collections_abc.Mapping):
428 c = self.copy()
429 c.update(other)
430 return c
431 return NotImplemented
432
433 def __ror__(self, other):
434 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