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: Document that PyErr_SetInterrupt is async-signal-safe
Type: behavior Stage:
Components: C API, Documentation Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, pablogsal, pitrou, vstinner
Priority: low Keywords:

Created on 2021-02-18 14:31 by pitrou, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg387234 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2021-02-18 14:31
While this makes sense given the exposed functionality, the reader may be wary of calling PyErr_SetInterrupt from a C signal handler if it's not explicitly documented as signal-safe.
History
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87422
2021-02-18 14:31:32pitroucreate