How to eval a file
Alexander Schmolck
a.schmolck at gmx.net
Sun Feb 23 14:21:38 EST 2003
Alex Martelli <aleax at aleax.it> writes:
>
> OK, if you can stay away from eval/exec/execfile altogether, you'll no
> doubt be even gladder;-).
>
Has someone implemented a parser/"evaluator" for files that contain a limited
and safe subset of python (literals, comments, variable definitions and
possibly some simple expressions such as arithmetic and string methods)? It
seems to me that such a module could be a valuable addition to the standard
library.
alex
More information about the Python-list
mailing list