On Jun 6, 2008, at 6:45 PM, Stef Mientki wrote:
hello, In the code below, I can build a large street like this: large_street = house * 25 but not a small street. like this: small_street = 5 * house
This calls the int.__mul__() code i believe.
Why is this different ? And more interesting, how do I get the right results ?
If memory serves me right look into __rmul__(). Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list