sending thread exceptions (was Re: RELEASED Python 2.3.1)
Dominic
oblivious at web.de
Fri Sep 26 05:17:25 EDT 2003
Peter Hansen wrote:
> Dominic wrote:
>
>>Besides with Pyrex it's 2-4 lines to access
>>PyThreadState_SetAsyncExc from Python :-)
>
>
> Posting those 2-4 lines would be helpful to those searching the archives
> at a later date. ;-)
Sure, here they are:
cdef extern int PyThreadState_SetAsyncExc(long id, obj)
def interrupt(id, obj):
PyThreadState_SetAsyncExc(id, obj)
>
> -Peter
More information about the Python-list
mailing list