Cancelling a python thread (revisited...)

Antoine Pitrou solipsis at pitrou.net
Sun Nov 8 14:34:00 EST 2009


John Nagle <nagle <at> animats.com> writes:
> 
>     I'd argue against general thread cancellation.  Inter-thread
> signals, though, have safety problems no worse than the first-thread
> only signals we have now.  You're allowed to raise an exception
> in a signal handler, which is effectively thread cancellation.

Can you give an example of such "cancellation"?
In any case, this would be a side-effect of the current implementation, not
officially supported behaviour.

Regards

Antoine.





More information about the Python-list mailing list