STINNER Victor <vstin...@python.org> added the comment:
Such function already exists in the master branch, but it's only part of the internal C API: PyAPI_FUNC(int) _PyOS_InterruptOccurred(PyThreadState *tstate); Currently, the C API design is to always requires to hold the GIL. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41037> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com