2**2**2**2**2 wrong? Bug?
Erik Max Francis
max at alcyone.com
Tue Jul 10 03:05:49 EDT 2007
Jim Langston wrote:
> Gah! Python goes right to left? Dang, I haven't seen that since APL.
For the ** operator, and with good reason: Left-associative ** doesn't
really serve much useful purpose, since (a**b)**c == a**(b*c), so if one
writes a**b**c, one usually means a**(b**c), or they would have written
it more efficiently and clearly.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis
Men with empires in their purpose / And new eras in their brains
-- Lamya
More information about the Python-list
mailing list