Re: how to build a street with more than 1 house ?

2008-06-07 Thread David C. Ullrich
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

Re: how to build a street with more than 1 house ?

2008-06-07 Thread Stef Mientki
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 ?

how to build a street with more than 1 house ?

2008-06-06 Thread Stef Mientki
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

Re: how to build a street with more than 1 house ?

2008-06-06 Thread Tommy Grav
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,