overloading __mul__
zunbeltz
zunlatex at hotmail.com
Thu Mar 13 02:56:11 EST 2003
"Greg Ewing (using news.cis.dfn.de)" <me at privacy.net> wrote in message news:<b4omhc$21cn7k$3 at ID-169208.news.dfncis.de>...
> Michael Amrhein wrote:
> > __rmul__ = __mul__
>
> ...but only if he wants matrix*vector and vector*matrix
> to have identical results, which he probably doesn't!
You are right! (I defined a different __rmul__
thanks to all for the help. I got it working!
Zunbeltz
More information about the Python-list
mailing list