10 Jun
2003
10 Jun
'03
10:21 a.m.
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/)