2**2**2**2**2 wrong? Bug?

Paul Rubin http
Wed Jul 11 17:17:30 EDT 2007


"Evan Klitzke" <evan at yelp.com> writes:
> Python happens to choose right
> associativity for exponentiation because it is more useful for that
> operator, but that doesn't make the language itself right associative.

I would say Python uses right associativity for exponentiation because
that's standard mathematical convention, and any languages that do it
differently (if they use operator precedence at all) get it wrong.



More information about the Python-list mailing list