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


Groups > comp.lang.python > #81813

Re: Proposed new conditional operator: "or else"

From Andrea D'Amore <anddamNOPSAM+gruppi@brapi.net>
Newsgroups comp.lang.python
Subject Re: Proposed new conditional operator: "or else"
Date 2014-12-02 22:41 +0100
Organization C.U. srl News Server
Message-ID <m5lblc$6mq$1@virtdiesel.mng.cu.mi.it> (permalink)
References <mailman.16496.1417542094.18130.python-list@python.org>

Show all headers | View raw


On 2014-12-02 17:41:06 +0000, Zachary Ware said:

>> foo == 42 or else

> Never going to happen, but I like it!  Perhaps raise IntimidationError
> instead of AssertionError when it fails?

That should probably be a DONTPANICError in large, friendly terminal 
font letters.

-- 
Andrea

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


Thread

Re: Proposed new conditional operator: "or else" Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-12-02 11:41 -0600
  Re: Proposed new conditional operator: "or else" Andrea D'Amore <anddamNOPSAM+gruppi@brapi.net> - 2014-12-02 22:41 +0100

csiph-web