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


Groups > comp.lang.python > #49931

Re: How is this evaluated

References <81f466df-5203-48a7-97a8-643b70d9dd16@googlegroups.com> <51d62451$0$29999$c3e8da3$5496439d@news.astraweb.com>
Date 2013-07-05 17:05 +1000
Subject Re: How is this evaluated
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4269.1373007952.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Jul 5, 2013 at 11:41 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> If you know C, that's like:
>
>     ?(condition-being-tested, value-if-true, value-if-false)

Or to be precise:

condition-being-tested ? value-if-true : value-if-false

ChrisA

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


Thread

How is this evaluated Arturo B <a7xrturodev@gmail.com> - 2013-07-04 10:20 -0700
  Re: How is this evaluated Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-07-04 20:05 +0200
  Re: How is this evaluated newspost2012@gmx.de - 2013-07-04 11:07 -0700
  Re: How is this evaluated Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-07-04 21:22 +0300
  Re: How is this evaluated Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-05 01:41 +0000
    Re: How is this evaluated Chris Angelico <rosuav@gmail.com> - 2013-07-05 17:05 +1000
      Re: How is this evaluated Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-05 08:38 +0000

csiph-web