[Python-checkins] r81844 - python/branches/py3k/Python/pythonrun.c
victor.stinner
python-checkins at python.org
Tue Jun 8 23:00:13 CEST 2010
Author: victor.stinner
Date: Tue Jun 8 23:00:13 2010
New Revision: 81844
Log:
Py_FatalError(): don't sys sys.last_xxx variables
Call PyErr_PrintEx(0) instead of PyErr_Print() to avoid a crash if
Py_FatalError() is called in an early stage of Python initialization (if PySys
is not yet initialized).
Modified:
python/branches/py3k/Python/pythonrun.c
Modified: python/branches/py3k/Python/pythonrun.c
==============================================================================
--- python/branches/py3k/Python/pythonrun.c (original)
+++ python/branches/py3k/Python/pythonrun.c Tue Jun 8 23:00:13 2010
@@ -2055,7 +2055,7 @@
fprintf(stderr, "Fatal Python error: %s\n", msg);
fflush(stderr); /* it helps in Windows debug build */
if (PyErr_Occurred()) {
- PyErr_Print();
+ PyErr_PrintEx(0);
}
#ifdef MS_WINDOWS
{
More information about the Python-checkins
mailing list