]> granicus.if.org Git - python/commit
Py_FatalError(): don't sys sys.last_xxx variables
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 8 Jun 2010 21:00:13 +0000 (21:00 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 8 Jun 2010 21:00:13 +0000 (21:00 +0000)
commit55a5c78e4dc4393ef0c57602775db2d3d704be36
tree5cc44e273910a510e62b1577cd6845270174a180
parent9b7e2d1e542ccecd031818229773d7836c437992
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).
Python/pythonrun.c