]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-39871: Fix possible SystemError in atan2, copysign and remainder (GH-18806...
authorMark Dickinson <mdickinson@enthought.com>
Sat, 14 Mar 2020 11:51:53 +0000 (11:51 +0000)
committerGitHub <noreply@github.com>
Sat, 14 Mar 2020 11:51:53 +0000 (11:51 +0000)
commit4dcfe5f2e4bad8e03990de75d8d4ec20e8aa23b3
tree73ebf52ee10dbbefdc36c5578447028e9b091fd4
parent962c7220cf41cded256556b8c7973469f3f3c176
[3.7] bpo-39871: Fix possible SystemError in atan2, copysign and remainder (GH-18806) (GH-18990)

In math_2(), the first PyFloat_AsDouble() call should be checked
for failure before the second call.

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>.
(cherry picked from commit 5208b4b37953a406db0ed6a9db545c2948dde989)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/test/test_math.py
Misc/NEWS.d/next/Core and Builtins/2020-03-06-06-12-37.bpo-39871.dCAj_2.rst [new file with mode: 0644]
Modules/mathmodule.c