Embedding a restricted python interpreter

Dieter Maurer dieter at handshake.de
Sat Jan 8 14:24:33 EST 2005


Doug Holton <a at b.c> writes on Thu, 06 Jan 2005 20:34:31 -0600:
> ...
> Hi, there is a page on this topic here:
> http://www.python.org/moin/SandboxedPython
> 
> The short answer is that it is not possible to do this with the
> CPython, but you can run sandboxed code on other virtual machines,
> such as Java's JVM with Jython, or .NET/Mono's CLR with Boo or
> IronPython.

Zope contains a "restrictedPython" implementation.

  It uses a specialized compiler that prevents dangerous bytecode operations
  to be generated and enforces a restricted builtin environment.



More information about the Python-list mailing list