automatically grading small programming assignments

Dan Bishop danb_83 at yahoo.com
Thu Dec 14 23:55:50 EST 2006


On Dec 14, 8:36 pm, Brian Blais <bbl... at bryant.edu> wrote:
> commander.co... at hotmail.com wrote:
> > bearophileH... 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?

How would they access their command-line arguments without sys.argv?




More information about the Python-list mailing list