Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81855

Re: Proposed new conditional operator: "or else"

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python.list@tim.thechases.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'debugging': 0.07; 'occasionally': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'perl': 0.31; 'charset:us-ascii': 0.36; 'received:10': 0.37; 'subject:new': 0.38; 'subject:"': 0.60; 'subject:else': 0.84
X-Sender-Id wwwh|x-authuser|tim@thechases.com
X-Sender-Id wwwh|x-authuser|tim@thechases.com
X-MC-Relay Neutral
X-MailChannels-SenderId wwwh|x-authuser|tim@thechases.com
X-MailChannels-Auth-Id wwwh
X-MC-Loop-Signature 1417607655417:3531418509
X-MC-Ingress-Time 1417607655417
Date Wed, 3 Dec 2014 05:56:44 -0600
From Tim Chase <python.list@tim.thechases.com>
To Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Proposed new conditional operator: "or else"
In-Reply-To <1o2t7a5rt5j35lm8e5ad2811cpoupbs22f@4ax.com>
References <C2BEED98-4CCA-4EDE-8FDF-F235B478055C@panix.com> <1o2t7a5rt5j35lm8e5ad2811cpoupbs22f@4ax.com>
X-Mailer Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-AuthUser tim@thechases.com
Cc python-list@python.org
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.16530.1417607667.18130.python-list@python.org> (permalink)
Lines 7
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1417607667 news.xs4all.nl 2839 [2001:888:2000:d::a6]:37755
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 2742
X-Received-Body-CRC 1500409499
Xref csiph.com comp.lang.python:81855

Show key headers only | View raw


On 2014-12-02 23:05, Dennis Lee Bieber wrote:
> >   foo == 42 or else
> 
> 	Has a PERL stink to it... like: foo == 42 or die

This actually works in Python and I occasionally use  in debugging
(much like

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Proposed new conditional operator: "or else" Tim Chase <python.list@tim.thechases.com> - 2014-12-03 05:56 -0600

csiph-web