On Wed, Oct 14, 2009 at 7:57 PM, Joe Riopel <goo...@gmail.com> wrote: > On Wed, Oct 14, 2009 at 8:53 PM, Peng Yu <pengyu...@gmail.com> wrote: >> I have the following python code snippet. I'm wondering what command I >> should use to terminate the program if the arguments are not right. > > I usually use sys.exit.
I actually wanted to ask what return code should be returned in this case when the arguments are not right. Thank you1 -- http://mail.python.org/mailman/listinfo/python-list