[Python-Dev] Adding a conditional expression in Py3.0 (original) (raw)

Edward C. Jones edcjones at comcast.net
Thu Sep 29 18:00:08 CEST 2005


Guido van Rossum wrote:

file = os.path.abspath(file) if file else '?' ...

These are all unreadable. In C "a ? b : c" is not used very often. A quick check of the Python source found 476 occurences.

-1 to conditional expressions.



More information about the Python-Dev mailing list