overloading __mul__

Greg Ewing (using news.cis.dfn.de) me at privacy.net
Thu Mar 13 02:27:05 CET 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

More information about the Python-list mailing list