]> granicus.if.org Git - python/commit
bpo-36379: __ipow__ must be a ternaryfunc, not a binaryfunc (GH-13546)
authorZackery Spytz <zspytz@gmail.com>
Fri, 31 May 2019 09:46:36 +0000 (03:46 -0600)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 31 May 2019 09:46:36 +0000 (02:46 -0700)
commitc7f803b08ed5211701c75f98ba9ada85d45ac155
treea283b57dae8d45875c48b3143a11aef601fb3d9f
parentc7f7069e77c58e83b847c0bfe4d5aadf6add2e68
bpo-36379: __ipow__ must be a ternaryfunc, not a binaryfunc (GH-13546)

If a type's __ipow__ method was implemented in C, attempting to use
the *modulo* parameter would cause crashes.

https://bugs.python.org/issue36379
Lib/test/test_capi.py
Misc/NEWS.d/next/C API/2019-05-24-07-11-08.bpo-36379.8zgoKe.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Objects/typeobject.c