PEP 308: ternary operator

Steven Taschuk staschuk at
Sat Feb 22 22:03:32 CET 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                                      ,-= U
                                                               1 1

More information about the Python-list mailing list