semantics of ** (unexpected/inconsistent?)
Lie Ryan
lie.1296 at gmail.com
Sun Nov 29 21:19:33 EST 2009
On 11/30/2009 12:38 PM, Esmail wrote:
> Thanks all!! I get it now :-)
>
> It helped to have a number of different explanations, thanks
> for taking the time to post. Much appreciated.
I generally do not expect operator precedence to be reliable at all
except for:
+ - (binary ops, not the unary)
* /
**
for other operators I would have explicit parens. It's too much work to
remember the rest of the precedence sheet.
More information about the Python-list
mailing list