One liners

Chris Angelico rosuav at gmail.com
Fri Dec 6 21:40:13 EST 2013


On Sat, Dec 7, 2013 at 1:28 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> As for readability, I accept that ternary if is unusual compared to other
> languages...

All the C-derived ternary operators put the condition first, but
Python puts the condition in the middle. What that does for
readability I don't really know. Which is more important?

ChrisA



More information about the Python-list mailing list