26 Nov
2007
26 Nov
'07
4:21 p.m.
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. -- Greg