]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42500: Fix recursion in or after except (GH-23568) (#24501)
authorMark Shannon <mark@hotpy.org>
Tue, 2 Mar 2021 10:36:38 +0000 (10:36 +0000)
committerGitHub <noreply@github.com>
Tue, 2 Mar 2021 10:36:38 +0000 (11:36 +0100)
commit8b795ab5541d8a4e69be4137dfdc207714270b77
treed7fcc96f3243d082ea024964a643a32a004a5fbd
parentf836e5f2194857b24ec03adfcfcce05375868f88
bpo-42500: Fix recursion in or after except (GH-23568) (#24501)

* Use counter, rather boolean state when handling soft overflows.

(cherry picked from commit 4e7a69bdb63a104587759d7784124492dcdd496e)
Include/cpython/pystate.h
Include/internal/pycore_ceval.h
Lib/test/test_exceptions.py
Lib/test/test_sys.py
Misc/NEWS.d/next/Core and Builtins/2020-11-30-14-27-29.bpo-42500.excVKU.rst [new file with mode: 0644]
Python/ceval.c
Python/errors.c
Python/pystate.c
Python/sysmodule.c