468,292 Members | 1,865 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,292 developers. It's quick & easy.

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

On Jun 6, 2008, at 6:45 PM, Stef Mientki wrote:

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__().

Jun 27 '08 #1
0 648

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by harry | last post: by
2 posts views Thread by =?Utf-8?B?Q29lbg==?= | last post: by
2 posts views Thread by Stef Mientki | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.