Cross-platform time out decorator
hniksic at xemacs.org
Thu Sep 27 16:36:32 CEST 2007
Joel <joel.schaerer at gmail.com> writes:
> I found the solution :
> describes a solution based on threads. I tested it and it works
Note that, unlike the original alarm code, it doesn't really interrupt
the timed-out method, it just returns the control back to the caller,
using an exception to mark that a timeout occurred. The "timed out"
code is still merrily running in the background. I don't know if it's
a problem in your case, but it's an important drawback.
More information about the Python-list