We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175080c commit 9db5a2bCopy full SHA for 9db5a2b
Python/pylifecycle.c
@@ -477,6 +477,7 @@ pyinit_core_reconfigure(_PyRuntimeState *runtime,
477
if (interp == NULL) {
478
return _PyStatus_ERR("can't make main interpreter");
479
}
480
+ assert(interp->_ready);
481
482
status = _PyConfig_Write(config, runtime);
483
if (_PyStatus_EXCEPTION(status)) {
@@ -632,6 +633,7 @@ pycore_create_interpreter(_PyRuntimeState *runtime,
632
633
assert(interp != NULL);
634
assert(_Py_IsMainInterpreter(interp));
635
_PyInterpreterState_SetWhence(interp, _PyInterpreterState_WHENCE_RUNTIME);
636
+ interp->_ready = 1;
637
638
status = _PyConfig_Copy(&interp->config, src_config);
639
0 commit comments