Mark Dickinson <dicki...@gmail.com> added the comment: It sounds like you're seeing the difference between this:
>>> n = -7 >>> n ** 0 1 and this: >>> -7 ** 0 -1 This isn't a bug; it's to do with how Python expressions are parsed: in the second case, the expression is grouped as -(7 ** 0) rather than (-7) ** 0. BTW, it's helpful to post exact code when filing a possible bug. :-) ---------- nosy: +mark.dickinson resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14825> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com