Multiple conditional expression
tismer at stackless.com
Mon Mar 2 10:03:35 CET 2009
On 3/2/09 12:53 AM, Bruno Desthuilliers wrote:
> 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 !-)
Bruhahaa, my biggest laugh since months
Christian Tismer :^) <mailto:tismer at stackless.com>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
More information about the Python-list