This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PyErr_CheckSignals returns -1 on error, not 1
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, gustavo
Priority: normal Keywords: patch

Created on 2006-11-07 15:48 by gustavo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-pyerr-check-signals-doc-fix.diff gustavo, 2006-11-07 15:48 trivial patch to fix docs
Messages (2)
msg51343 - (view) Author: Gustavo J. A. M. Carneiro (gustavo) * Date: 2006-11-07 15:48
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.

I posted on the ML [2] and got no reply in over a
month, so GvR suggested to fix the docs (patch attached).


[1]
http://docs.python.org/api/exceptionHandling.html#l2h-115

[2]
http://mail.python.org/pipermail/python-dev/2006-September/068994.html
msg51344 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-11-08 07:46
Logged In: YES 
user_id=849994

Committed as rev. 52666, 52667 (2.5).
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44206
2006-11-07 15:48:20gustavocreate