Re: [Python-Dev] PyThreadState_SetAsyncExc and native extensions

2006-04-30 Thread Aahz
On Fri, Apr 28, 2006, Gabriel Becedillas wrote: > > Does anyone know if PyThreadState_SetAsyncExc stops a thread while its > inside a native extension ? Please take this question to comp.lang.python; python-dev is for discussion about changes to the Python interpreter/language, not for questions a

[Python-Dev] PyThreadState_SetAsyncExc and native extensions

2006-04-30 Thread Gabriel Becedillas
Does anyone know if PyThreadState_SetAsyncExc stops a thread while its inside a native extension ? I'm trying to stop a testing script that boils down to this: while True: print "aaa" native_extension_call() print "bbb" Using PyThreadState_SetAsyncExc the module doesn't stop but if