Can anyone offer a suggestion?
Guido van Rossum
guido at python.org
Thu Jul 12 21:57:54 EDT 2001
"Emile van Sebille" <emile at fenx.com> writes:
> That's it! My class is invoking __rmul__, coercing the string to an
> instance and doing the math.
Emile, you might want to study operator precendence and execution
order and such. Weren't you also the one who was surprised that 3+5*4
was 23 instead of 32?
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-list
mailing list