• Guido van Rossum's avatar
    Add PyThreadState_SetAsyncExc(long, PyObject *). · b8b6d0c2
    Guido van Rossum yazdı
    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.
    b8b6d0c2
pystate.h 5.11 KB