Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 69586:c8338cfa3578
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 | 6e9dc970ac0e |
| children | d3af2a2b621b |
line wrap: on
line diff
--- a/Python/pythonrun.c Tue Apr 26 23:37:02 2011 +0200 +++ b/Python/pythonrun.c Wed Apr 27 00:20:27 2011 +0200 @@ -632,7 +632,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);
