Multiple conditional expression

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Mon Mar 2 03:53:40 EST 2009


Steve Holden a écrit :
> Anjanesh Lekshminarayanan wrote:
>>> How do we know that from the what the OP posted?
>> Its CGI alright.
>> spaces = form.has_key('spaces') and form.getvalue('spaces') == '1'
>>
>> But I just dont see how
>> spaces = (form.has_key('spaces') ? form.getvalue('spaces') == 1 ?
>> True: False : False)
>> is complicated in anyway. Its not that hard to read at all.
>>
> In that case I fear Python will be far too simple for your clearly
> impressive mind. You've been programming for way too long ...

+1 QOTW !-)



More information about the Python-list mailing list