Replacing open builtin

rmm at iname.com rmm at iname.com
Wed May 11 08:56:04 EDT 2005


Sorry, should maybe have used __import__ as an example.
Let's say I grab import, store the reference within the Isolate class
and then redirect the builtin import to a function in the Isolate class
which only allows certain modules to be imported -eg not sys.   Would
this be secure?




More information about the Python-list mailing list