[Python-Dev] bug 754449 and threads raising exceptions at interpreter teardown

Phillip J. Eby pje at telecommunity.com
Mon Feb 9 19:39:47 EST 2004


At 04:24 PM 2/9/04 -0800, Brett wrote:

>For some crazy reason having to delve into the world of thread libraries 
>for those cases where there is not an equivalent pthread_cancel does not 
>sound fun.  =)

Presumably, you could make those either raise NotImplementedError, or not 
export the cancellation function to the thread module.  Since people 
writing backward-compatible code will want to check for the existence of 
such a function anyway, it should not be a significant drawback to provide 
it only on platforms that are easily supported.

And, once you've written an example, others who have more familiarity with 
those other platforms might be more motivated to supply patches adding the 
feature to those as well.  :)




More information about the Python-Dev mailing list