What command should be use when the testing of arguments is failed?

Peng Yu pengyu.ut at gmail.com
Wed Oct 14 20:58:47 EDT 2009


On Wed, Oct 14, 2009 at 7:57 PM, Joe Riopel <goon12 at gmail.com> wrote:
> On Wed, Oct 14, 2009 at 8:53 PM, Peng Yu <pengyu.ut at 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



More information about the Python-list mailing list