homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients
Date 2007年04月04日.23:44:52
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
From c.l.p: in response to glitch report, 2nd person showed that it is specific to __pow__
>>> class MyInt(int):
... __sub__ = int.__add__
# similar lines for 9 other methods omitted
... __or__ = int.__add__
... __pow__ = int.__add__
...
>>> i = MyInt(42)
>>> i + 3
45
>>> i - 3
45
# similar outputs omitted
>>> i | 3
45
>>> i ** 3
74088
Another person (3rd) confirmed presence in 2.5 
Python 2.5 (r25:51908, Jan 21 2007, 03:10:25)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] 
History
Date User Action Args
2007年08月23日 14:52:55adminlinkissue1694663 messages
2007年08月23日 14:52:55admincreate

AltStyle によって変換されたページ (->オリジナル) /