[Python-ideas] Block-Scoped Exception Handlers

Kyle Lahnakoski klahnakoski at mozilla.com
Fri May 6 13:56:19 EDT 2016



On 5/6/2016 1:28 PM, Michael Selik wrote:
>
> This avoids the excessive indentation and helps improve the reading of
> how an error in the group will break but an error in one will
> continue. Does that not satisfy?

Yes, extracting deeply nested code into methods will reduce the
indentation.   It is disappointing that I must come up with a name for a
method that has only one call site.  More disappointment for each local
variable I must pass to that method,.  More disappointment for each
variable the code bock update this locals.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160506/d276d3fa/attachment.html>


More information about the Python-ideas mailing list