[Python-Dev] Re: Exceptional inheritance patterns

Skip Montanaro skip at pobox.com
Fri Aug 6 14:55:52 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


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant