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

Joe Riopel goon12 at gmail.com
Wed Oct 14 20:57:14 EDT 2009


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.



More information about the Python-list mailing list