cascading python executions only if return code is 0

Mark Lawrence breamoreboy at
Mon Dec 23 04:43:01 CET 2013

On 23/12/2013 03:22, Chris Angelico wrote:
> On Mon, Dec 23, 2013 at 2:10 PM, Dennis Lee Bieber
> <wlfraed at> wrote:
>>          Having spent 22 years with VMS, 0 -> success is still a problem to me.
>> Odd result codes (aka True) were 1-success/3-information, even results
>> (False) were 0-warning/2-error/4-fatal
> Having spent a similar amount of time with Unix, C, and various APIs,
> I'm quite used to 0 meaning success and nonzero meaning error.
> ChrisA

Another C thing to complain about, with functions like malloc the status 
code and value returned are one and the same thing, except that NULL is 
failure in this case.

My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

More information about the Python-list mailing list