On Fri, Aug 26, 2016 at 4:40 PM,  <mlzarathus...@gmail.com> wrote:
> Precedence, d'oh!
>
>         rs *= (n-(i-1))/i
> is equivalent to:
>         rs = rs * ((n-(i-1))/i)
>
> not
>         rs = rs * (n-(i-1))/i
>
> which is the same as
>         rs = ( rs * (n-(i-1)) )  /i
>
>
> Ken Iverson was right. Precedence is a bad idea.

No, precedence is not a bad idea. Making assumptions based on a lack
of precedence, now, that's a bad idea. But the problem is the
assumption :)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to