Python: multiplication override April 24, 2023 by Tarik Just add the following to the class definition and you should be good to go: __rmul__ = __mul__