Python Equivalent of Perl's Safe module?

Sheila King usenet at thinkspot.net
Mon Mar 11 03:30:03 EST 2002


On Mon, 11 Mar 2002 00:06:49 -0800, John Beppu <beppu at ax9.org> wrote in
comp.lang.python in article
<mailman.1015833318.19894.python-list at python.org>:

> 
> Hello, I was wondering if there was a Python equivalent of Perl's Safe
> module.  Here is the beginning of the man page for Perl's Safe.
> 
> 
>     NAME
> 	Safe - Compile and execute code in restricted compartments
> 

Perhaps one of these is what you're looking for?

http://www.python.org/doc/current/lib/module-Bastion.html

http://www.python.org/doc/current/lib/module-rexec.html

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/




More information about the Python-list mailing list