We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.


The * (multiplication) operator yields the product of its arguments. The arguments must either both be numbers, or one argument must be an integer (plain or long) and the other must be a sequence. In the former case, the numbers are converted to a common type and then multiplied together. In the latter case, sequence repetition is performed; a negative repetition factor yields an empty sequence.

To support this operator in your own classes, implement the __mul__ method.