[Python-Dev] PyErr_CheckSignals error return value

Gustavo Carneiro gjcarneiro at gmail.com
Sun Sep 24 14:07:33 CEST 2006


int PyErr_CheckSignals()

Documentation for PyErr_CheckSignals [1] says "If an exception is
raised the error indicator is set and the function returns 1;
otherwise the function returns 0.".  But the code I see tells me the
function returns -1 on error.  What to do?  Fix the code, or the
documentation?

[1] http://docs.python.org/api/exceptionHandling.html#l2h-115
-- 
Gustavo J. A. M. Carneiro
"The universe is always one step beyond logic."


More information about the Python-Dev mailing list