For review: PEP 308 - If-then-else expression

Paul Paterson hamonlypaulpaterson at houston.rr.com
Fri Feb 7 19:32:04 EST 2003


"holger krekel" <pyth at devel.trillke.net> wrote in message
news:mailman.1044640102.26759.python-list at python.org...
>
> It has happenend with list comprehensions before. But this doesn't
> mean it's generally a good thing.  For example consider
>
>     if obj() if callable(obj) else default:
>        ...

One of the most compelling, one-line counter arguments I've ever seen!

Paul






More information about the Python-list mailing list