• Guido van Rossum's avatar
    Add PyThreadState_SetAsyncExc(long, PyObject *). · 54ae24db
    Guido van Rossum authored
    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.
    54ae24db
ceval.c 96.8 KB