contained execution

Alex Martelli aleaxit at yahoo.com
Thu Oct 19 05:54:06 EDT 2000


"Jeff Davis" <jdavis at wasabimg.com> wrote in message
news:39EE9600.227A7F52 at wasabimg.com...
> I am interested in using python as an embedded scripting language. I
> have used python for a while (no expert though).  Is there a way to say
> "execute the following, but only use these functions/modules"? That way,
> nobody could write a script to reformat a hard drive and embed it in my
> program. What I am looking for is essentially a python equivelant of
> "Safe.pm" (from PERL), although hopefully a little easier to use.

See chapter 16 in the Library manual, "restricted execution", for
tools and suggestions regarding the questions you pose.

AMK's "Howto" about it, http://www.python.org/doc/howto/rexec/, is
another exposition of these issues.


Alex






More information about the Python-list mailing list