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

victor.stinner python-checkins at python.org
Sat Apr 30 14:17:47 CEST 2011


http://hg.python.org/cpython/rev/5a983773c09a
changeset: 69707:5a983773c09a
branch: 3.2
parent: 69705:08996a664ed3
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
@@ -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);
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

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