For review: PEP 308 - If-then-else expression
David Eppstein
eppstein at ics.uci.edu
Fri Feb 7 20:57:51 EST 2003
In article <8eY0a.2044$yn1.144744 at twister.austin.rr.com>,
"Paul Paterson" <hamonlypaulpaterson at houston.rr.com> wrote:
> > if obj() if callable(obj) else default:
> > ...
>
> One of the most compelling, one-line counter arguments I've ever seen!
What, just because a notation can be abused makes it always bad?
--
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/
More information about the Python-list
mailing list