mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
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.
This commit is contained in:
parent
58384c6ab0
commit
442ad74fc2
8 changed files with 138 additions and 95 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue