[Python-ideas] except expression

Chris Angelico rosuav at gmail.com
Tue Feb 18 18:49:46 CET 2014


On Wed, Feb 19, 2014 at 4:45 AM, Andrew Barnert <abarnert at yahoo.com> wrote:
> The fact that neither of them mentioned KeyError or IndexError, which are
> the two paradigm cases that brought up the proposal in the first place,
> implies to me that any attempt to define a collection of "expression errors"
> is going to be as hard and as contentious as coming up with a syntax.

Both of us mentioned LookupError, which is superclass to both KeyError
and IndexError, and so catches both of them.

ChrisA


More information about the Python-ideas mailing list