By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,171 Members | 809 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,171 IT Pros & Developers. It's quick & easy.

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

P: n/a

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
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.