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

Method __ror__

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

Source from the content-addressed store, hash-verified

335 return new
336
337 def __ror__(self, other):
338 if not isinstance(other, (dict, frozendict)):
339 return NotImplemented
340 new = self.__class__(other)
341 new.update(self)
342 return new
343
344
345try:

Callers 1

test_merge_operatorMethod · 0.95

Calls 2

__class__Method · 0.45
updateMethod · 0.45

Tested by 1

test_merge_operatorMethod · 0.76