Killing threads (was Re: Cancel or timeout a long running regular expression)

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Sep 20 02:51:42 CEST 2011


Antoon Pardon wrote:

> int PyThreadState_SetAsyncExc(long id, PyObject *exc)
> 
> To prevent
> naive misuse, you must write your own C extension to call this.

Not if we use ctypes! Muahahahaaa!

-- 
Greg



More information about the Python-list mailing list