Bug in __imul__

Peter Hansen peter at engcorp.com
Wed Jul 11 09:23:57 EDT 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