[Python-checkins] cpython: Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)

victor.stinner python-checkins at python.org
Wed Apr 27 00:24:24 CEST 2011


http://hg.python.org/cpython/rev/c8338cfa3578
changeset: 69586:c8338cfa3578
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Apr 27 00:20:27 2011 +0200
summary:
 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.
files:
 Python/pythonrun.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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);
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /