MCPcopy Index your code
hub / github.com/RustPython/RustPython / __radd__

Method __radd__

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

Source from the content-addressed store, hash-verified

1286 return self.__class__(self.data + list(other))
1287
1288 def __radd__(self, other):
1289 if isinstance(other, UserList):
1290 return self.__class__(other.data + self.data)
1291 elif isinstance(other, type(self.data)):
1292 return self.__class__(other + self.data)
1293 return self.__class__(list(other) + self.data)
1294
1295 def __iadd__(self, other):
1296 if isinstance(other, UserList):

Callers 1

test_radd_specialsMethod · 0.95

Calls 3

isinstanceFunction · 0.85
listClass · 0.85
__class__Method · 0.45

Tested by 1

test_radd_specialsMethod · 0.76