Is there a better way to implement this:

Paul Boddie paul at
Mon Jan 22 19:22:20 CET 2007

Michael Yanowitz wrote:
>    I guess I am looking for something portable (both
> Windows and Linux) where I can abort a function after
> a certain time limit expires.

Doing a search for "timeout function Python" on Google reveals a number
of approaches.

Using signals:


Using threads:


Using processes:



More information about the Python-list mailing list