[Python-Dev] PEP 343 - Abstract Block Redux
Russell E. Owen
rowen at cesmail.net
Mon May 16 23:58:33 CEST 2005
In article <5.1.1.6.0.20050516132944.01ee2c98 at mail.telecommunity.com>,
"Phillip J. Eby" <pje at telecommunity.com> wrote:
>...
> I personally think that StopIteration, TerminateIteration,
> KeyboardInterrupt and perhaps certain other exceptions should derive from
> some base class other than Exception (e.g. Raisable or some such) to help
> with the bare-except/except Exception problem. But that's probably best
> addressed by a separate PEP. :)
Yes, please!!!
I am so sick of writing:
except (SystemExit, KeyboardInterrupt):
raise
except Exception, e:
# handle a "real" error
but back to lurking on this discussion...
-- Russell
More information about the Python-Dev
mailing list