Using '__mul__' within a class
James Stroud
jstroud at mbi.ucla.edu
Sat Sep 24 16:20:45 EDT 2005
On Saturday 24 September 2005 09:07, jepler at unpythonic.net wrote:
> For the same reason that
> def f(z):
> z *= z
> c = 1
> f(c)
> print c
> prints 1.
>
> Jeff
I don't mean to be rude, but this is a horrible example if your are intending
to help a neophyte:
py> 1*1
1
See what I mean?
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
More information about the Python-list
mailing list