Neal Norwitz <[EMAIL PROTECTED]> 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 (*). But I > suspect there are many more features that would be required and it's > not so simple.
Yeah. I think of rexec as a way to safely eval expressions / exec statements provided by users without the risk of DOSing the machine executing them. And your solution doesn't handle things like 10000000000000000000**10000000000000000000. Giovanni Bajo _______________________________________________ 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