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
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 2021-02-18 14:31 by pitrou.

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.
Date User Action Args
2021-02-18 14:31:32pitroucreate