Re: Using '__mul__' within a class
- From: "Terry Reedy" <tjreedy@xxxxxxxx>
- Date: Sat, 24 Sep 2005 14:28:28 -0400
"Gerard Flanagan" <grflanagan@xxxxxxxxxxx> wrote in message
news:1127576164.489710.291280@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> def __mul__( self, other ):
> def Square( self ):
> self *= self
Among the other reasons cited, I believe that 'op=' maps to a different
special method than 'op'. __imul__? or something? do check.
tjr
.
- References:
- Using '__mul__' within a class
- From: Gerard Flanagan
- Using '__mul__' within a class
- Prev by Date: Poor man's OCR: need performance improvement tips
- Next by Date: Extending Embedded Python
- Previous by thread: Re: Using '__mul__' within a class
- Next by thread: Re: Using '__mul__' within a class
- Index(es):
Relevant Pages
|