Code formatting question: conditional expression
Ethan Furman
ethan at stoneleaf.us
Tue Aug 18 14:43:36 EDT 2009
John Posner wrote:
>
> BTW, from the (admittedly few) responses to my original post, it seems
> there's some sentiment that "conditional expressions" are a non-Pythonic
> misfeature. Interesting ...
>
> -John
>
>
>
I didn't read it that way. One of the (to me) core points of Pythonic
is readability. A conditional expression on one line is fine -- a
conditional expression on more than one line is less readable than the
standard if-else structure.
~Ethan~
More information about the Python-list
mailing list