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 brett.cannon
Recipients DeepSpace, ammar2, brett.cannon, hongweipeng, serhiy.storchaka
Date 2020-08-23.19:37:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598211448.77.0.20798817618.issue38302@roundup.psfhosted.org>
In-reply-to
Content
It turns out **= ONLY calls __ipow__ and neither __pow__ or  __rpow__ as the data model says should be called.

- Data Model: https://docs.python.org/3/reference/datamodel.html#object.__ipow__
- PyNumber_InPlacePower(): https://github.com/python/cpython/blob/802726acf6048338394a6a4750835c2cdd6a947b/Objects/abstract.c#L1159
- ternary_op (which is what is used to implement PyNumber_InPlacePower(): https://github.com/python/cpython/blob/802726acf6048338394a6a4750835c2cdd6a947b/Objects/abstract.c#L849
History
Date User Action Args
2020-08-23 19:37:28brett.cannonsetrecipients: + brett.cannon, serhiy.storchaka, ammar2, hongweipeng, DeepSpace
2020-08-23 19:37:28brett.cannonsetmessageid: <1598211448.77.0.20798817618.issue38302@roundup.psfhosted.org>
2020-08-23 19:37:28brett.cannonlinkissue38302 messages
2020-08-23 19:37:28brett.cannoncreate