While searching for a way to quickly kill a thread when using Python's out-of-the-box threading module, I came across this method: Use the Hidden _stop()
Function to Kill a Thread in Python
There is presumably a reason behind why the _stop()
function is protected rather than public. My assumption is that it's to make it difficult to terminate a thread unsafely, but I'm curious about whether there are any other reasons.
What are the downsides to calling _stop()
to kill a thread?