Mark Dickinson added the comment:
Yep, this was fixed as part of the issue 14658 fix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1694663
___
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
Mark Lawrence breamore...@yahoo.co.uk 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
___
Daniel Diniz aja...@gmail.com 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 rep...@bugs.python.org
Changes by Georg Brandl [EMAIL PROTECTED]:
--
assignee: georg.brandl - zseil
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1694663
___
___
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 different
Changes by Ziga Seilnacht [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file12029/time_slot_inheritance.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1694663
___
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).