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.

On January 6, 2019 4:05:27 PM UTC, Chris Angelico <ros...@gmail.com> wrote:
>On Mon, Jan 7, 2019 at 2:52 AM Serhiy Storchaka <storch...@gmail.com>
>wrote:
>>
>> 06.01.19 17:35, Chris Angelico пише:
>> > On Mon, Jan 7, 2019 at 2:27 AM Serhiy Storchaka
><storch...@gmail.com> wrote:
>> >> Because there is a reason for such code.
>> >
>> > What reason though??
>>
>> I added references and excerpts in the previous message.
>
>Which I read, and they do not explain the assignment of None. The only
>reference is that the tracker issue mentions having a test case to
>ensure that it's happening, which is further proof that it's
>intentional, but still fails to explain *why*.
>
>ChrisA
>_______________________________________________
>Python-Dev mailing list
>Python-Dev@python.org
>https://mail.python.org/mailman/listinfo/python-dev
>Unsubscribe:
>https://mail.python.org/mailman/options/python-dev/paul%40ganssle.io
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to