[Python-ideas] except expression

Ethan Furman ethan at stoneleaf.us
Mon Feb 17 04:31:17 CET 2014


I see two motivating factors for an except expression:

   - one line try/except handling for simple cases
   - easier default value handling when function/method does not support a default value

Given that, I don't think we need to support multiple exception types or chained exceptions.  If it's that complicated, 
use an actual try block -- it'll be much more readable.

--
~Ethan~


More information about the Python-ideas mailing list