New submission from benlbroussard <benlbrouss...@gmail.com>: Negative one squared should be one, but is negative one sometimes.
pow(-1, 2) = 1 -1 ** 2 = -1 -1 ^ 2 = -1 The ** and ^ operators aren't working like expected, and the pow() documentation is incorrect since it says "The two-argument form pow(x, y) is equivalent to using the power operator: x**y." ---------- components: None messages: 91951 nosy: benlbroussard severity: normal status: open title: even exponentiation of negative numbers versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6781> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com