How is this evaluated

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Jul 5 10:38:00 CEST 2013


On Fri, 05 Jul 2013 17:05:49 +1000, Chris Angelico wrote:

> On Fri, Jul 5, 2013 at 11:41 AM, Steven D'Aprano
> <steve+comp.lang.python at 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


Oops. Sorry about that. I thought it looked wrong even as I was typing it.




-- 
Steven



More information about the Python-list mailing list