(original) (raw)

changeset: 69707:5a983773c09a branch: 3.2 parent: 69705:08996a664ed3 user: Victor Stinner victor.stinner@haypocalc.com date: Wed Apr 27 00:20:27 2011 +0200 files: Python/pythonrun.c description: 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 -r 08996a664ed3 -r 5a983773c09a Python/pythonrun.c --- a/Python/pythonrun.c Sat Apr 30 09:36:35 2011 +0200 +++ b/Python/pythonrun.c Wed Apr 27 00:20:27 2011 +0200 @@ -622,7 +622,7 @@ 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); /victor.stinner@haypocalc.com