[issue10061] ** operator yielding wrong result for negative numbers
Senthil Kumaran
report at bugs.python.org
Sun Oct 10 08:49:36 CEST 2010
Senthil Kumaran <orsenthil at gmail.com> added the comment:
It's to do with operator precedence.
** takes higher precedence than negative.
http://docs.python.org/reference/expressions.html#Summary
(-5) ** 4 will give what you are looking for.
----------
nosy: +orsenthil
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10061>
_______________________________________
More information about the Python-bugs-list
mailing list