Python __radd__() Magic Method
Syntax object.__radd__(self, other) The Python __radd__() method implements the reverse addition operation that is addition with reflected, swapped operands. So, when you call x + y, Python attempts to call x.__add__(y). Only if the method is not implemented on the left operrand, Python attempts to call __radd__ on the right operand and if this isn’t … Read more