[Python-ideas] except expression

Chris Angelico rosuav at gmail.com
Tue Feb 18 17:08:55 CET 2014


On Wed, Feb 19, 2014 at 3:01 AM, MRAB <python at mrabarnett.plus.com> wrote:
>> ProgrammerIsAMoronAndHisCodeIsInError
>>
> I think that last one should be:
>
>     ProgrammerIsAMoronAndHisCodeIsInErrorError
>
> or just:
>
>     PebkacError

The error is that his code is in. If his code had been out, that would
have been fine. When this exception is thrown, you need to hit it with
your bat, otherwise your code will be out as soon as the exception
hits the stumps.

ChrisA


More information about the Python-ideas mailing list