Python Worst Practices

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Feb 27 03:02:52 EST 2015


On 27/02/2015 01:31, Dennis Lee Bieber wrote:
> On Thu, 26 Feb 2015 20:10:28 +0000, Simon Ward <simon+python at bleah.co.uk>
> declaimed the following:
>
>>
>> 0 = success and non-zero = failure is the meme established, rather than 0 = true, non-zero = false.
>>
>> It's not just used by UNIX, and is not necessarily defined by the shell either (bash was mentioned elsewhere in the thread). There is probably a system that pre-dates UNIX that I uses/used this too, but I don't know.
>>
>
> 	I miss VMS...
>
> 	Odd => true, even => false
> 	Odd -> success, +even -> warning, -even -> error (odd may have been
> success vs info>
>

Me to, Very Much Safer :)

-- 
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