[Python-ideas] except expression

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 20 03:58:28 CET 2014


Another idea:

    things[i] or else None if IndexError

You can't claim that the exception is in the wrong place
in relation to the 'except' keyword, because there is no
'except' keyword!

-- 
Greg



More information about the Python-ideas mailing list