Newbie: Classes

KefX keflimarcusx at aol.comNOSPAM
Mon Oct 27 02:21:30 EST 2003


>it's late, but I think you meant
>
>def __mul__(self, m):
>    r = self.r * m
>    i = self.i * m
>    return Complex(r, i)
>
>-- bjorn

Yeah, that. ;)
- Kef




More information about the Python-list mailing list