Operator precedence problem

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Jun 6 19:21:29 EDT 2016


Peter Pearson wrote:

>                 c
>                b
>   a**(b**c) = a

Also, in mathematical texts it's usually written with
the c smaller than the b, and the b smaller than the
a, which helps to make the precedence clear. We
can't do that in Python, unforunately. Unless we allow
writing the source in html...

-- 
Greg



More information about the Python-list mailing list