On Fri, Sep 14, 2012 at 11:52 AM, Stephen J. Turnbull
<
stephen@xemacs.org> wrote:
> ISTR there were discussions of "qualified except" clauses here maybe
> 6mo to 1yr ago? That is, they'd look something like
>
> try:
> operation()
> except IOError as err if err.errno == 2:
> do_something()
> except Exception:
> logger.error("Error performing operation: {}".format(err.message)")
> some_clean_up()
> raise
>
> Again ISTR that this got spiked for some reason, but maybe it will be
> of use to the OP in formulating his next idea. Sorry for the lack of
> precise reference.
They were one of the ideas discussed when Antoine was writing PEP