Python Equivalent of Perl's Safe module?
beppu at ax9.org
Mon Mar 11 09:06:49 CET 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.
Safe - Compile and execute code in restricted compartments
$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:
Any help finding such a module for Python would be appreciated.
More information about the Python-list