interpreter limits

Irmen de Jong irmen at -nospam-remove-this-xs4all.nl
Tue Apr 13 14:17:49 EDT 2004


Joseph T. Bore wrote:

> Any idea if it's possible?  should I write a PEP?

Can't you do something smart with signals, threads, alarm() and kill() ?
Like running the code in a worker thread, where the main thread
keeps track of how long it has been running and if not finished
within a certain time, kill() it.
Or use alarm() to get signaled after some time, then kill it in
the signal handler.

--Irmen



More information about the Python-list mailing list