Bug in __imul__

Steve Holden sholden at holdenweb.com
Wed Jul 11 16:34:13 CEST 2001


"Emile van Sebille" <emile at fenx.com> wrote in message
news:9ihg33$irjha$1 at ID-11957.news.dfncis.de...
> Does it bother anyone that
>
> a *= 3 + 4
>
> returns a different value from
>
> a = a * 3 + 4
>
> ??
>
Two words: operator precedence.

regards
 Steve
--
http://www.holdenweb.com/








More information about the Python-list mailing list