[Python-Dev] Order of operations

Dirkjan Ochtman dirkjan at ochtman.nl
Thu Aug 30 02:48:51 CEST 2007

Alexandre Vassalotti wrote:
> C doesn't have an exponentiation operator. You use the pow() function, instead:

Wouldn't it make more sense, then, to have unary +/- have higher 
precedence than the ** operator, so that -3**2 == 9?



More information about the Python-Dev mailing list