A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-August/047114.html below:

[Python-Dev] Re: Exceptional inheritance patterns

[Python-Dev] Re: Exceptional inheritance patterns [Python-Dev] Re: Exceptional inheritance patternsGuido van Rossum guido at python.org
Fri Aug 6 16:52:39 CEST 2004
>     Michael> I would like an exception class that almost exceptions except
>     Michael> KeyboardInterrupt, SystemExit and -- maybe -- RuntimeError and
>     Michael> MemoryError inherited from.
> 
>     Michael> except ExceptionsButThoseNastyOnesIDontWantToCatch:
>     Michael>     pass
> 
>     Michael> ? <wink>
> 
> I proposed a change to the exceptions hierarchy a few years ago that would
> allow this.  It was obviously never implemented, but I no longer remember
> why.
> 
> Skip

Probably inertia and compatibility issues (2.2 must've been brand new
when you proposed that).  I've become swayed by Paul Prescod's recent
argument that exceptions use subclassing for classification reasons
and that there's nothing wrong with *requiring* them to subclass some
common base class.

--Guido van Rossum (home page: http://www.python.org/~guido/)
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