3 ms·
Good question. I run the code first through a parser that (hopefully) removes all unsafe elements like file, and import. It was a Python cookbook recipe I fou
by tocomment 19y ago
Good question. I run the code first through a parser that (hopefully) removes all unsafe elements like file, and import. It was a Python cookbook recipe I found.
If the site gets more popular, I'd like to switch to running an unrestricted interpreter in a chroot jail so users will have access to the full power of Python and third party libraries like PIL.