Help needed with controlling the python parser
vinjvinj
vinjvinj at gmail.com
Tue Jan 10 11:51:36 EST 2006
I use python to script my application. Users will be able to write
their own python scripts which are then run a grid of servers. I want
to be able to capture syntax errors in submitted users scripts and then
display them (with line numbers) back to the user.
I also want to check for obvious things which I'm going to restrict in
the code. Initially I would like to disallow any imports, and access to
__* access. I understand that it is near impossible to make the scripts
run in a completely restricted env.
Is scripting a tool like pylint the way to go? Or is it fairly easy to
control the python parser to do this?
Thanks,
VJ
More information about the Python-list
mailing list