Multiple conditional expression

Steve Holden steve at holdenweb.com
Fri Feb 27 08:13:35 EST 2009


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 ...

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list