Secure Python

Fredrik Tolf fredrik at
Fri Nov 17 14:29:04 CET 2006

On Thu, 2006-11-16 at 08:43 +0200, Hendrik van Rooyen wrote:
>  "Fredrik Tolf" <fredrik at> wrote:
> > I was thinking that maybe it could be possible to load and run untrusted
> > Python code, simply by loading it in a module with a modified version of
> > __builtins__. Without any reachable function that do unsafe operations,
> > code running from there shouldn't be able to do evil things.
> google for "sandbox"

I tried googling for various combinations of "sandbox", "python" and
some other keywords, but I could not find anything that seemed relevant.
Did you have any particular hit in mind?

Fredrik Tolf

More information about the Python-list mailing list