[Python-Dev] Compilation of "except FooExc as var" adds useless store

Chris Angelico rosuav at gmail.com
Sun Jan 6 11:05:27 EST 2019


On Mon, Jan 7, 2019 at 2:52 AM Serhiy Storchaka <storchaka at gmail.com> wrote:
>
> 06.01.19 17:35, Chris Angelico пише:
> > On Mon, Jan 7, 2019 at 2:27 AM Serhiy Storchaka <storchaka at 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


More information about the Python-Dev mailing list