Bug in __imul__

Peter Hansen peter at engcorp.com
Wed Jul 11 15:23:57 CEST 2001


Emile van Sebille wrote:
> 
> Does it bother anyone that
> 
> a *= 3 + 4
> 
> returns a different value from
> 
> a = a * 3 + 4
> 
> ??

Not if the value it returns is the same as

a = a * 7

...

----------------------
Peter Hansen, P.Eng.
peter at engcorp.com



More information about the Python-list mailing list