automatically grading small programming assignments
Brian Blais
bblais at bryant.edu
Thu Dec 14 21:36:24 EST 2006
commander.coder at hotmail.com wrote:
> bearophileHUGS at lycos.com wrote:
> Then on your PC you can
>> run a script that loads each of such programs, and runs a good series
>> of tests, to test their quality...
> What happens if someone-- perhaps not even someone in the class-- does
> some version of os.system('rm -Rf /') ?
>
I was thinking of including a dummy os.py and sys.py, so import os, and import sys
would fail. Would this work? Is there anything else obvious. I can have student
authentication, that's not a problem.
bb
--
-----------------
bblais at bryant.edu
http://web.bryant.edu/~bblais
More information about the Python-list
mailing list