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

Serhiy Storchaka storchaka at gmail.com
Sun Jan 6 13:44:23 EST 2019


06.01.19 18:05, Chris Angelico пише:
> 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*.

This is explained on a discussion on the Python-3000 mailing list. I 
provided a code example which would fail if do not perform such 
assignment. The test, mentioned in the tracker issue, contains similar code.



More information about the Python-Dev mailing list