right way to run some code with timeout in Python
A completely general solution to this really, honestly does not exist. You have to use the right solution for a given domain. If you want timeouts for code you fully control, you have to write it to cooperate. Such code has to be able to break up into little chunks in some way, as in … Read more