]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46417: Factorize _PyExc_InitTypes() code (GH-30804)
authorVictor Stinner <vstinner@python.org>
Sat, 22 Jan 2022 20:48:56 +0000 (21:48 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Jan 2022 20:48:56 +0000 (21:48 +0100)
commitf1bcdeaca6e912a2bec1fbcff76cc49e7f761d38
tree21cf3d580c398760d89d22242b11a890a831a552
parenta941e5927f7f2540946813606c61c6aea38db426
bpo-46417: Factorize _PyExc_InitTypes() code (GH-30804)

Add 'static_exceptions' list to factorize code between
_PyExc_InitTypes() and _PyBuiltins_AddExceptions().

_PyExc_InitTypes() does nothing if it's not the main interpreter.

Sort exceptions in Lib/test/exception_hierarchy.txt.
Include/internal/pycore_exceptions.h
Include/internal/pycore_pylifecycle.h
Lib/test/exception_hierarchy.txt
Objects/exceptions.c
Python/pylifecycle.c