]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43687: Py_Initialize() creates singletons earlier (GH-25147)
authorVictor Stinner <vstinner@python.org>
Fri, 2 Apr 2021 13:28:13 +0000 (15:28 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Apr 2021 13:28:13 +0000 (15:28 +0200)
commit442ad74fc2928b095760eb89aba93c28eab17f9b
tree29f784c0860f41cd6d2c16d34e8ced47ebf5e005
parent58384c6ab01bbc35cc14cdeb716f6c45a3df426b
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.
Include/internal/pycore_long.h
Include/internal/pycore_pylifecycle.h
Objects/floatobject.c
Objects/longobject.c
Objects/structseq.c
Objects/unicodeobject.c
Python/errors.c
Python/pylifecycle.c