A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-May/053823.html below:

[Python-Dev] PEP 343 - Abstract Block Redux

[Python-Dev] PEP 343 - Abstract Block Redux [Python-Dev] PEP 343 - Abstract Block ReduxRussell 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4