I created hack solution that exploits signals but it works only with custom input functions. To make the solution universal (compatible with CPython’s read() function) I need to understand how to make CPython’s PyErr_CheckSignals() to return True.
Can anyone give advice?