PEP 308: ternary operator

Steven Taschuk staschuk at telusplanet.net
Sat Feb 22 16:03:32 EST 2003


Quoth phil hunt:
  [...]
> There are other syntaxes that I'd be happy with, e.g:
> 
>    result = (if c then a else b)
> 
> But I reject the argument "if it's C it's bad".

Fwiw, the PEP itself makes the better argument "if you need to
know C for it to be clear, it's bad".

-- 
Steven Taschuk                                                   w_w
staschuk at telusplanet.net                                      ,-= U
                                                               1 1





More information about the Python-list mailing list