Doug Holton <[EMAIL PROTECTED]> 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. -- http://mail.python.org/mailman/listinfo/python-list