overloading __mul__

Greg Ewing (using news.cis.dfn.de) me at privacy.net
Wed Mar 12 20:27:05 EST 2003


Michael Amrhein wrote:
>   __rmul__ = __mul__

...but only if he wants matrix*vector and vector*matrix
to have identical results, which he probably doesn't!

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list