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

Xavier Ho contact at xavierho.com
Wed Oct 14 21:12:46 EDT 2009


On Thu, Oct 15, 2009 at 10:58 AM, Peng Yu <pengyu.ut at gmail.com> wrote:

> I actually wanted to ask what return code should be returned in this
> case when the arguments are not right. Thank you1
>
>
I think that depends on the design of the program. Is there a return value
that would make sense to be returned by default? If not, None is usually a
good choice. Be sure to put these return values in the doc string.

Cheers,
Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091015/a7f5de91/attachment-0001.html>


More information about the Python-list mailing list