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

Method __or__

Lib/os.py:768–773  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

766 return self
767
768 def __or__(self, other):
769 if not isinstance(other, Mapping):
770 return NotImplemented
771 new = dict(self)
772 new.update(other)
773 return new
774
775 def __ror__(self, other):
776 if not isinstance(other, Mapping):

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected