Bug in __imul__

Carsten Gaebler clpy at snakefarm.org
Wed Jul 11 08:47:13 EDT 2001


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

No, because a *= 3 + 4 means a = a * (3 + 4). No bug here.

cg.



More information about the Python-list mailing list