Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86587
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <simon+python@bleah.co.uk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.092 |
| X-Spam-Evidence | '*H*': 0.85; '*S*': 0.03; 'subject:Python': 0.06; 'bash': 0.09; 'exit': 0.09; 'false.': 0.09; 'evaluates': 0.16; 'illustrate': 0.16; 'language': 0.16; 'wrote:': 0.18; 'examples': 0.20; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'but': 0.35; 'false': 0.36; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'hope': 0.61; 'mentioned': 0.61; 'success': 0.61; 'truth': 0.81; '2015': 0.84; 'received:btcentralplus.com': 0.84; 'subject:Practices': 0.84; 'received:86': 0.91 |
| User-Agent | Kaiten Mail |
| In-Reply-To | <757f69ee-b66b-426c-98e2-3b76c11f6075@email.android.com> |
| References | <mclca6$iie$1@ger.gmane.org> <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> <85h9u82wq1.fsf@benfinney.id.au> <757f69ee-b66b-426c-98e2-3b76c11f6075@email.android.com> |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 8bit |
| Content-Type | text/plain; charset=UTF-8 |
| Subject | Re: Python Worst Practices |
| From | Simon Ward <simon+python@bleah.co.uk> |
| Date | Fri, 27 Feb 2015 20:23:26 +0000 |
| To | python-list@python.org |
| X-Spam-Flag | NO |
| X-Spam-Score | -2.9 |
| X-Spam-Level | -- |
| X-Spam-Report | No, score=-2.9 required=5.0 tests=ALL_TRUSTED, BAYES_00 autolearn=ham version=3.3.2 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19313.1425068621.18130.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1425068621 news.xs4all.nl 2969 [2001:888:2000:d::a6]:37027 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:86587 |
Show key headers only | View raw
On 27 February 2015 20:06:25 GMT+00:00, I wrote: >I mentioned the true and false. OK, so it's a meme, but it's based on a >false (pun intended) understanding of exit status codes. That success >evaluates to true and failure evaluates to false does not mean the >values of truth and falseness are inverted. No programming language >other than that provided by system shells I have used evaluates 0 to >true. I hope the following examples from bash illustrate this: $ (( 0 )) && echo success $ (( 1 )) && echo success success $ (( 0 )) ; echo $? 1 $ (( 1 )) ; echo $? 0 Simon
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python Worst Practices Simon Ward <simon+python@bleah.co.uk> - 2015-02-27 20:23 +0000
csiph-web