[issue1694663] Overloading int.__pow__ does not work

2013-01-05 Thread Mark Dickinson
Mark Dickinson added the comment: Yep, this was fixed as part of the issue 14658 fix. -- ___ Python tracker ___ ___ Python-bugs-list

[issue1694663] Overloading int.__pow__ does not work

2013-01-04 Thread Serhiy Storchaka
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

[issue1694663] Overloading int.__pow__ does not work

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Could someone please review this patch to typeobject.c. -- components: +Extension Modules -None nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker

[issue1694663] Overloading int.__pow__ does not work

2009-04-26 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed in py3k and trunk. -- nosy: +ajaksu2, marketdickinson stage: -> patch review type: -> behavior versions: +Python 2.6, Python 3.0 -Python 2.5 ___ Python tracker ___

[issue1694663] Overloading int.__pow__ does not work

2008-11-18 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- assignee: georg.brandl -> zseil ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python

[issue1694663] Overloading int.__pow__ does not work

2008-11-17 Thread Ziga Seilnacht
Changes by Ziga Seilnacht <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12029/time_slot_inheritance.py ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1694663] Overloading int.__pow__ does not work

2008-11-17 Thread Ziga Seilnacht
Ziga Seilnacht <[EMAIL PROTECTED]> added the comment: Hi Raymond, The signature matters because the current code in update_one_slot() forgets to set the use_generic flag when slots have different wrappers. This causes that the slot from the base class is left in the new type. Slots have differen

[issue1694663] Overloading int.__pow__ does not work

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Georg, do you want to take a look at this patch. I've neglected it because I don't see why the argument signature matters (__neg__ and __pow__ take a different number of arguments than the other magic numeric methods that work just fine).