<html><head></head><body>I think Serhiy is saying that if you delete exc before the except body ends, when the compiled code goes to delete it it will fail. Binding to None guarantees that there is something to delete.<br><br><div class="gmail_quote">On January 6, 2019 4:05:27 PM UTC, Chris Angelico <rosuav@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On Mon, Jan 7, 2019 at 2:52 AM Serhiy Storchaka <storchaka@gmail.com> wrote:<br>><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">06.01.19 17:35, Chris Angelico пише:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">On Mon, Jan 7, 2019 at 2:27 AM Serhiy Storchaka <storchaka@gmail.com> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;">Because there is a reason for such code.<br></blockquote>What reason though??<br></blockquote>I added references and excerpts in the previous message.<br></blockquote><br>Which I read, and they do not explain the assignment of None. The only<br>reference is that the tracker issue mentions having a test case to<br>ensure that it's happening, which is further proof that it's<br>intentional, but still fails to explain *why*.<br><br>ChrisA<hr>Python-Dev mailing list<br>Python-Dev@python.org<br><a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/paul%40ganssle.io">https://mail.python.org/mailman/options/python-dev/paul%40ganssle.io</a><br></pre></blockquote></div></body></html>