Senthil Kumaran <orsent...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue10061> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com