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/021853.html below:

R: [Python-Dev] Deprecating string exceptions

R: [Python-Dev] Deprecating string exceptions R: [Python-Dev] Deprecating string exceptionsMartin v. Loewis martin@v.loewis.de
28 Mar 2002 16:25:56 +0100
Skip Montanaro <skip@pobox.com> writes:

>     Guido> One other, more practical reason to like the rule: "except
>     Guido> Exception:" would become equivalent to "except:".  
> 
> Just to make sure I'm not missing something (I probably am), I still think
> the recommended catch-all except construct should become "except
> StandardError:" with KeyboardInterrupt migrated to inherit from Exception
> instead of StandardError.

That is indeed a different issue. If you want to catch everything
(including KeyboardInterrupt), you need an except: clause, in which
case it is difficult to get at the exception object.

Regards,
Martin




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