On Sat, 8 Apr 2006 18:18:13 -0700, Neal Norwitz wrote: > #3 is easy to do a simple, naive implementation. I don't know what > your needs are. If you just want to say "exit this script if it ran > more than N seconds" you can just modify the eval loop (*).
Unfortunately, it is not as easy as that. There are many code parts in Python that are implemented as functions written in C that might take very long to compute. I just remember how I could stall a well known wiki engine written in Python (;-) by entering a too complex regular expression into the search field (it needed quite a lot seconds per page). Kind regards, Alexander _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com