]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-39871: Fix possible SystemError in atan2, copysign and remainder (GH-18806...
authorMark Dickinson <mdickinson@enthought.com>
Sat, 14 Mar 2020 11:38:52 +0000 (11:38 +0000)
committerGitHub <noreply@github.com>
Sat, 14 Mar 2020 11:38:52 +0000 (11:38 +0000)
commite634a8ac1f8a2904a2241b83fc5e4c9f40d5c7ca
tree0141c799047ea2e47f32f5da648f2493e5443856
parentf6bdac1bf718eab0cc5b6554f363f21252d245ce
[3.8] bpo-39871: Fix possible SystemError in atan2, copysign and remainder (GH-18806) (GH-18989)

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