<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 5/5/2016 11:23 AM, Michael Selik
wrote:<br>
</div>
<blockquote
cite="mid:CAGgTfkMEfMsTaX2j-g-SLS2Zeim=fBdNxM7nz3pHpqvyQTtjUA@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Thu, May 5, 2016, 7:13 AM Kyle Lahnakoski <<a
moz-do-not-send="true" href="mailto:klahnakoski@mozilla.com"><a class="moz-txt-link-abbreviated" href="mailto:klahnakoski@mozilla.com">klahnakoski@mozilla.com</a></a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 5/4/2016 10:31 PM, Steven D'Aprano wrote:<br>
> On Thu, May 05, 2016 at 02:17:25AM +0000, Michael Selik
wrote:<br>
><br>
>> Unfortunately, Kyle is using Python 2.7 still, so
``raise from`` won't help<br>
>> him.<br>
> If Kyle is using Python 2.7, then a new feature which is
only introduced<br>
> to 3.6 or 3.7 isn't going to help him either.<br>
><br>
<br>
It will help me! Eventually. :)<br>
</blockquote>
</div>
<div><br>
</div>
<div>I thought you said the ``raise from`` syntax solved the
problem. No?</div>
</blockquote>
<br>
I am jealous that Python 3.x has `raise from`, and I can not use it.
`raise from` does solve the exception chaining problems in 2.7,
but that can be worked around just as effectively [1]. Me being
stuck in 2.7 will not last forever.<br>
<br>
`raise from` does not solve the excessive indentation problem: I
have many `try` clauses, causing deep indentation in my code. The
block-scoped exception handlers would mitigate this deep
indentation, and make exception handling even easier to add.<br>
</body>
</html>