diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-10-22 23:13:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 23:13:46 (GMT) |
commit | f30ad65dbf3c6b1b5eec14dc954d65ef32327857 (patch) | |
tree | 410d8eb9335a1e405cbc7092e8f5a36e592ad712 /Python/pylifecycle.c | |
parent | 4bc5473a42c5eae0928430930b897209492e849d (diff) | |
download | cpython-f30ad65dbf3c6b1b5eec14dc954d65ef32327857.zip cpython-f30ad65dbf3c6b1b5eec14dc954d65ef32327857.tar.gz cpython-f30ad65dbf3c6b1b5eec14dc954d65ef32327857.tar.bz2 |
bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes (GH-28569)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index c5a209a..9ce845c 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1662,6 +1662,8 @@ finalize_interp_clear(PyThreadState *tstate) { int is_main_interp = _Py_IsMainInterpreter(tstate->interp); + _PyExc_ClearExceptionGroupType(tstate->interp); + /* Clear interpreter state and all thread states */ _PyInterpreterState_Clear(tstate); |