Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/grantjenks/python-sortedcontainers
/ __or__
Method
__or__
sortedcontainers/sorteddict.py:305–309 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
303
304
305
def
__or__(self, other):
306
if
not isinstance(other, Mapping):
307
return
NotImplemented
308
items = chain(self.items(), other.items())
309
return
self.__class__(self._key, items)
310
311
312
def
__ror__(self, other):
Callers
nothing calls this directly
Calls
1
items
Method · 0.95
Tested by
no test coverage detected