Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)
... instead of PyErr_Print() because we don't need to set sys attributes, the sys module is destroyed just after printing the error.
This commit is contained in:
@@ -622,7 +622,7 @@ Py_NewInterpreter(void)
|
||||
handle_error:
|
||||
/* Oops, it didn't work. Undo it all. */
|
||||
|
||||
PyErr_Print();
|
||||
PyErr_PrintEx(0);
|
||||
PyThreadState_Clear(tstate);
|
||||
PyThreadState_Swap(save_tstate);
|
||||
PyThreadState_Delete(tstate);
|
||||
|
||||
Reference in New Issue
Block a user