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/2014-February/132594.html below:

[Python-Dev] PEP 463: Exception-catching expressions

[Python-Dev] PEP 463: Exception-catching expressions [Python-Dev] PEP 463: Exception-catching expressionsNick Coghlan ncoghlan at gmail.com
Fri Feb 21 16:02:41 CET 2014
On 22 February 2014 00:50, Antoine Pitrou <solipsis at pitrou.net> wrote:
> On Sat, 22 Feb 2014 00:28:01 +1000
> Nick Coghlan <ncoghlan at gmail.com> wrote:
>>
>> Neither of these objections addresses the problems with the status quo, though:
>>
>> - the status quo encourages overbroad exception handling (as
>> illustrated by examples in the PEP)
>
> I don't get this. Using the proper exception class in a "try...except"
> suite is no more bothersome than using the proper exception class in
> this newly-proposed construct.

Not overbroad in the sense of catching too many different kinds of
exception, overbroad in the sense of covering too much code in the try
block.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
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