[issue41903] PyNumber_InPlacePower ignores o3 if o1 implements __ipow__

Ammar Askar report at bugs.python.org
Thu Oct 1 11:20:21 EDT 2020


Ammar Askar <ammar at ammaraskar.com> added the comment:

Huh, this is weird. I wonder why the data model provides the signature

  object.__ipow__(self, other[, modulo])

if the slot always seems to drop the third argument.

Adding Brett to the nosy who found another issue around the special casing of pow/** recently. See also issue38302

----------
nosy: +ammar2

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41903>
_______________________________________


More information about the Python-bugs-list mailing list