[Python-Dev] towards a faster Python

Guido van Rossum guido@python.org
Tue, 10 Jun 2003 10:21:56 -0400


> what about substituing the built-in entirely for security reasons,
> Zope3 does that with its wrapping versions:
> 
> 
>      def ri_exec(self, code):
>          # XXX What is the type of code?
>          self.globals['__builtins__'] = RestrictedBuiltins
>          exec code in self.globals
> 
> regards. 

Restricted execution is a different case; possibly the compiler will
need to know when it is compiling for restricted mode.

--Guido van Rossum (home page: http://www.python.org/~guido/)