sbt <[email protected]> added the comment:
I think I have found the problem. PyTraceBack_Print() calls
PyFile_WriteString(), which calls PyFile_WriteObject(), which calls
PyObject_Str() which begins with
PyObject_Str(PyObject *v)
{
PyObject *res;
if (PyErr_CheckSignals())
return NULL;
...
Since PyErr_CheckSignals() returns -1, PyTraceBack_Print() fails.
(Changed title.)
----------
title: SIGINT prevents raising of exceptions unless PyErr_CheckSignals() called
-> PyTraceBack_Print() fails if signal received but PyErr_CheckSignals() not
called
type: -> behavior
versions: +Python 2.7, Python 3.2
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13673>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com