For review: PEP 308 - If-then-else expression
Andrew Koenig
ark at research.att.com
Sat Feb 8 18:21:39 EST 2003
Aahz> From my POV, usable orthogonality is related to simplicity.
Aahz> Adding a ternary operator reduces Python's simplicity, and
Aahz> therefore a certain amount of orthogonality. Listcomps fit
Aahz> "practicality beats purity", but I just don't see that *in*
Aahz> *the* *aggregate* for ternaries.
I guess that's a judgment call. I'm working on a library right now in
which it would be quite useful to be able to embed conditionals in
lambda-expressions instead of having to define them as separate
functions.
--
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark
More information about the Python-list
mailing list