0 + not 0

candide c.candide at laposte.net
Sat Jul 11 07:54:30 EDT 2015


Le samedi 11 juillet 2015 13:31:03 UTC+2, Luuk a écrit :

> 
> But operator precedence of 'not' is higher than of '+' ????


Right but what does this prove? For instance, unary minus has higher precedence than exponentiation but the expression

2 ** -1

doesn't raise a syntax error.



More information about the Python-list mailing list