[Python-Dev] PyThreadState_SetAsyncExc, PyErr_Clear and native extensions

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 12 04:35:16 CEST 2006


Gabriel Becedillas wrote:
> PyThreadState_SetAsyncExc was called when the thread was inside a
> native extension, that for some reason calls PyErr_Clear.

Maybe PyThreadState_SetAsyncExc should set a flag that
says "this is an async exception, don't clear it", and
have PyErr_Clear take notice of that flag.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiem!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list