[Python-ideas] __builtins__ behavior and... the FUTURE!
greg.ewing at canterbury.ac.nz
Tue Nov 27 00:21:15 CET 2007
Guido van Rossum wrote:
> The semantics of __builtins__ are an implementation detail used for
> sandboxing, and assignment to __builtins__ is not supported.
Perhaps in 3.0 there could be an additional argument to
eval and exec for supplying a builtin namespace? Then
sandboxing code wouldn't have to make assumptions about
the implementation, and the way would be open for
optimising it in any way we wanted.
More information about the Python-ideas