[Python-3000] Will we have a true restricted exec environment for python-3000?

Georg Brandl g.brandl at gmx.net
Sun Apr 9 12:18:31 CEST 2006


Greg Ewing wrote:
> Nick Coghlan wrote:
> 
>> If yes, then you can get to object(), and hence to pretty much whatever C 
>> builtins you want.
> 
> Perhaps instead of attributes like __class__ and __subtypes__
> there should be functions like classof() and subtypes() that
> could be excluded from a restricted environment.

Even as properties and methods, they can be restricted, like func_code is now.

Georg



More information about the Python-3000 mailing list