Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 69707:5a983773c09a 3.2
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.
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Wed, 27 Apr 2011 00:20:27 +0200 |
| parents | 0b6f6514461e |
| children | 2caf82aee7a4 |
line wrap: on
line diff
--- 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);
