Time-controlled execution?

Fazer faizan at jaredweb.com
Thu Jan 8 10:03:33 EST 2004


Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote in message news:<7xsmirtn2i.fsf at ruckus.brouhaha.com>...
> faizan at jaredweb.com (Fazer) writes:
> > Lets say that I need to open a large file in Python.  However, I only
> > want this operation to take no more than four seconds.  If it takes
> > longer than four seconds to open this file, abort the process.  How
> > can I do this?
> 
> http://python.org/doc/current/lib/node304.html

Perfect!  Thanks a lot!



More information about the Python-list mailing list