Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86558
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Python Worst Practices |
| Date | 2015-02-26 20:31 -0500 |
| Organization | IISS Elusive Unicorn |
| References | (1 earlier) <CAPTjJmppMhBuLy=LMC=ycN0RYE9Jp8BVZbdSeqBZupd_7Nwxfw@mail.gmail.com> <85bnkh5z96.fsf@benfinney.id.au> <CAPTjJmrySN-tpcyXON4v_Ux0E961DYZqc5kF116sTLp_-RetqQ@mail.gmail.com> <85zj814jmb.fsf@benfinney.id.au> <1103e6a0-2183-4641-bf98-2927806c2172@email.android.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19298.1425000674.18130.python-list@python.org> (permalink) |
On Thu, 26 Feb 2015 20:10:28 +0000, Simon Ward <simon+python@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>
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python Worst Practices Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-02-26 20:31 -0500
csiph-web