Cross-platform time out decorator

Joel joel.schaerer at gmail.com
Thu Sep 27 09:31:22 EDT 2007


On Sep 26, 12:21 pm, Joel <joel.schae... at gmail.com> wrote:
> I've been using this nice timing out decorator :http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871. The
> problem is that since it relies on sigalarm, it doesn't work under
> windows. Would anyone know how to do a cross-platform version?
>
> Thanks a lot!
>
> joel

I found the solution : http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440569
describes a solution based on threads. I tested it and it works
perfectly.




More information about the Python-list mailing list