What command should be use when the testing of arguments is failed?
contact at xavierho.com
Thu Oct 15 03:12:46 CEST 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list