[Python-Dev] Adding C ternary select (a?b:c) to Python?

David Ascher da@ski.org
Sun, 30 Jan 2000 10:07:51 -0800


FWIW, the lack of a ternary select is one of the frequently asked questions
in my Python courses.  It would make TomC happier as well.  I'm not sure the
latter is a feature. =)

On the topic of aesthetics, the C syntax doesn't strike me as the ultimate
in pythonicity but it's not too bad either.  I can't think of an alternative
that doesn't involve a new reserved word.

--david