I recently learned about operator overloading in python and I would like to know if the following is possible.
Consider the folowing hypothetica/contrived class.
You have to overload the __radd__ method (right-side addition). Your function should look pretty much the same as your __add__ method, e.g.:
__radd__
__add__
def __radd__(self, other): return self.val + other.val