[Python-3000] Will we have a true restricted exec environmentfor python-3000?
Giovanni Bajo
rasky at develer.com
Mon Apr 10 02:35:44 CEST 2006
Neal Norwitz <nnorwitz at gmail.com> 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
More information about the Python-3000
mailing list