Andrew <[email protected]> writes: > How to do you create a server that accepts a set of user code? [...]
Look up the "exec" statement, the server can use it to execute any code
received from the client as a string.
Note "any code", though; exec runs in no sandbox and if a malicious
client defines addition(1, 2) to execute os.system('sudo rm -rf /'), the
server will happily do just that.
--
http://mail.python.org/mailman/listinfo/python-list
