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.2.1b1~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1188935af9ff5b762c6b1eaacb1dffdf0208bb40;p=thirdparty%2FPython%2Fcpython.git 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 38b2ab84fbda..6251e30a34fa 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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);