[Python-ideas] except expression
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Feb 17 22:40:33 CET 2014
Chris Angelico wrote:
> Do you mean that there may not be a comma, or that commas must be
> surrounded by parens?
Commas would need to be surroounded by parens.
> Imagine if the exception
> list isn't literals, but comes from somewhere else (which is perfectly
> legal). How do you eyeball it and see that this is now a new except
> clause?
I'm not a big fan of this idea either. It seems
to me that wanting more than one except clause is
going to be *extremely* rare, so it's not worth
going out of our way to make it super-concise.
--
Greg
More information about the Python-ideas
mailing list