[issue4224] ** operating incorrectly for negative bases?

Benjamin Peterson report at bugs.python.org
Tue Oct 28 22:57:07 CET 2008


Benjamin Peterson <musiccomposition at gmail.com> added the comment:

This is because the negative sign is evaluated after the power. (-1)**2
works correctly.

----------
components: +Interpreter Core -Tests, ctypes
nosy: +benjamin.peterson
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list