[issue24526] Exponent function bug

R. David Murray report at bugs.python.org
Mon Jun 29 12:53:33 CEST 2015


R. David Murray added the comment:

This bit of python's precedence rules often catches people by surprise.  ** binds tighter than -, so what python is evaluating is -(1**10).

----------
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: compile error -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24526>
_______________________________________


More information about the Python-bugs-list mailing list