On Sat, 07 Jun 2008 00:45:07 +0200, Stef Mientki
[EMAIL PROTECTED] 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
Why is this different ?
Because you're multiplying on the left in
thanks guys,
David C. Ullrich wrote:
On Sat, 07 Jun 2008 00:45:07 +0200, Stef Mientki
[EMAIL PROTECTED] 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
Why is this different ?
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
Why is this different ?
And more interesting, how do I get the right results ?
thanks,
Stef Mientki
class type_house ( object ) :
def
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,