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

Chris Angelico rosuav at gmail.com
Sun Jan 6 11:18:00 EST 2019

On Mon, Jan 7, 2019 at 3:13 AM Paul G <paul at ganssle.io> wrote:
> 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.

Ahh! Thank you. I interpreted that example as a "this is what it
compiles to", rather than actual source code that might fail. Can we
get this example, suitably annotated, into the documentation


More information about the Python-Dev mailing list