Re: Using '__mul__' within a class
- From: Ivan Voras <ivoras@xxxxxxxxxxxxx>
- Date: Sat, 24 Sep 2005 18:44:34 +0200
Gerard Flanagan wrote:
def Square( self ):
self *= self
You probably mean return self * self
A = FibonacciMatrix() A.Square()
Make this A = A.Square() .
- References:
- Using '__mul__' within a class
- From: Gerard Flanagan
- Using '__mul__' within a class
- Prev by Date: Re: Productivity and economics at software development
- Next by Date: Most direct way to strip unoprintable characters out of a string?
- Previous by thread: Using '__mul__' within a class
- Next by thread: Re: Using '__mul__' within a class
- Index(es):