Alberto Berti wrote:
> maybe using import hooks?
>
> http://www.python.org/dev/peps/pep-0302/
>
>   
I don't think so. Anyone can hook the import statement. And this is just 
one reason. Some objects are built in. For example, file(). How can you 
restrict file creation? I believe that there is no safe restricted 
environment, implemented in pure python.

Best,


   Laszlo

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to