Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.13] gh-113841: fix possible undefined division by 0 in _Py_c_pow() (GH-127211) #127216

Open
wants to merge 1 commit into
base: 3.13
Choose a base branch
from

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 24, 2024

x**y == 1/x**-y thus changing /= to *= by negating the exponent.
(cherry picked from commit f7bb658)

Co-authored-by: Sergey B Kirpichev [email protected]

…ythonGH-127211)

`x**y == 1/x**-y ` thus changing `/=` to `*=` by negating the exponent.
(cherry picked from commit f7bb658)

Co-authored-by: Sergey B Kirpichev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants