Serhiy Storchaka added the comment: This behavior doesn't reproduced more on 2.7 and 3.2+.
>>> class MyInt(int): ... __pow__ = int.__add__ ... >>> i = MyInt(42) >>> i**3 45 ---------- nosy: +serhiy.storchaka resolution: -> out of date stage: patch review -> committed/rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1694663> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com