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

Method __or__

Lib/collections/__init__.py:330–335  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

328 return self
329
330 def __or__(self, other):
331 if not isinstance(other, (dict, frozendict)):
332 return NotImplemented
333 new = self.__class__(self)
334 new.update(other)
335 return new
336
337 def __ror__(self, other):
338 if not isinstance(other, (dict, frozendict)):

Callers

nothing calls this directly

Calls 2

__class__Method · 0.45
updateMethod · 0.45

Tested by

no test coverage detected