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

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Sep 19 20:51:42 EDT 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