automatically grading small programming assignments

Brian Blais bblais at bryant.edu
Fri Dec 15 06:11:00 EST 2006


Dan Bishop wrote:
> 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?
> 

the types of assignments that I am envisioning (finding the maximum in a list, 
parsing strings, etc.) will not need anything offered in os or sys.  Certainly, if 
they were needed, another solution would need to be found.


			bb

-- 
-----------------

              bblais at bryant.edu
              http://web.bryant.edu/~bblais



More information about the Python-list mailing list