catching exceptions from an except: block

Arnaud Delobelle arnodel at googlemail.com
Wed Mar 7 15:09:07 EST 2007


On 7 Mar, 19:26, "Miki" <miki.teb... at gmail.com> wrote:
> Hello Arnaud,

Hi Miki

[snip]
> Exceptions are for error handling, not flow control.

Maybe but it's not always that clear cut! As error handling is a form
of flow control the two have to meet somewhere.

[snip]
> As a side note, try to avoid "catch:", always catch explicit
> exceptions.

I didn't specify what I wanted to catch because it didn't feel it was
relevant to the problem.

Thanks

--
Arnaud




More information about the Python-list mailing list