Re: How a script can know if it has been called with the -i command line option?

2006-12-21 Thread commander . coder
Michele Simionato wrote: > The subject says it all, I would like a script to act differently when > called as > $ python script.py and when called as $ python -i script.py. I looked > at the sys module > but I don't see a way to retrieve the command line flags, where should > I look? In the optpar

Re: automatically grading small programming assignments

2006-12-14 Thread commander . coder
[EMAIL PROTECTED] 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 /') ? -- http://mail.python.org/m

Re: automatically grading small programming assignments

2006-12-14 Thread commander . coder
[EMAIL PROTECTED] 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 /') ? -- http://mail.python.org/m