diff options
author | Victor Stinner <vstinner@python.org> | 2021-04-02 15:28:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 15:28:13 +0200 |
commit | 442ad74fc2928b095760eb89aba93c28eab17f9b (patch) | |
tree | 29f784c0860f41cd6d2c16d34e8ced47ebf5e005 /Python/errors.c | |
parent | 58384c6ab01bbc35cc14cdeb716f6c45a3df426b (diff) | |
download | cpython-git-442ad74fc2928b095760eb89aba93c28eab17f9b.tar.gz |
bpo-43687: Py_Initialize() creates singletons earlier (GH-25147)
Reorganize pycore_interp_init() to initialize singletons before the
the first PyType_Ready() call. Fix an issue when Python is configured
using --without-doc-strings.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c index 9bac7ba70f..d73ba93b02 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -1192,7 +1192,7 @@ static PyStructSequence_Desc UnraisableHookArgs_desc = { PyStatus -_PyErr_Init(void) +_PyErr_InitTypes(void) { if (UnraisableHookArgsType.tp_name == NULL) { if (PyStructSequence_InitType2(&UnraisableHookArgsType, |