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/2002-March/021499.html below:

[Python-Dev] Breaking bug #411881 into manageable pieces

[Python-Dev] Breaking bug #411881 into manageable pieces [Python-Dev] Breaking bug #411881 into manageable piecesAahz aahz@pythoncraft.com
Wed, 20 Mar 2002 14:52:54 -0500
On Wed, Mar 20, 2002, Guido van Rossum wrote:
>
> There's a standard idiom for this:
> 
>   try:
>     ...code...
>   except KeyboardInterrupt:
>     raise
>   except:
>     ...handler...

May I suggest yet one more alteration:

    try:
        ...code...
    except (KeyboardInterrupt,SystemExit):
        raise
    except:
        ...handler...
-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/

The best way to get information on Usenet is not to ask a question, but
to post the wrong information.  --Aahz



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