Python Equivalent of Perl's Safe module?
John Beppu
beppu at ax9.org
Mon Mar 11 03:06:49 EST 2002
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
SYNOPSIS
use Safe;
$compartment = new Safe;
$compartment->permit(qw(time sort :browse));
$result = $compartment->reval($unsafe_code);
The full documentation for the Safe module can be found at:
http://perldoc.com/perl5.6.1/lib/Safe.html
Any help finding such a module for Python would be appreciated.
More information about the Python-list
mailing list