operator-mul

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.

 

A Django site. this page was rendered by a django application in 0.02s 2008-10-11 00:04:39.995910. hosted by webfaction.