python overwrite __add__ of list code example Example: python override add class MyClass: def __add__(self, b): return 5 + b