Add PyThreadState_SetAsyncExc(long, PyObject *).
A new API (only accessible from C) to interrupt a thread by sending it an exception. This is not always effective, but might help some people. Requested by Just van Rossum and Alex Martelli. It is intentional that you have to write your own C extension to call it from Python. Docs will have to wait.
G
Guido van Rossum committed
b8b6d0c2c63bcd9252ce20ef990da093dda8b8ce
Parent: 90a2041