From: Victor Stinner Date: Tue, 26 Apr 2011 22:20:27 +0000 (+0200) Subject: Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0) X-Git-Tag: v3.3.0a1~2495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c40a350db0f16c678273ee715fe7c70c431360a1;p=python 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. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index a6787c4fc7..99bd66d7ad 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -632,7 +632,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);