In [1]: class Foo: ...: def __rmul__(self, other): ...: print("%s foos!" % other) ...: In [2]: .42 * Foo() 0.42 foos!