[Python-Dev] Tangent on class level scoping rules (was Re: PEP 463: Exception-catching expressions)

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 22 00:57:28 CET 2014

Nick Coghlan wrote:
> As Chris later noted, you likely *could* still implement expression
> local name binding for an except expression without a full closure, it
> would just be rather difficult.

I'm still not convinced it would be all *that* difficult.
Seems to me it would be semantically equivalent to
renaming the inner variable and adding a finally clause
to unbind it. Is there something I'm missing?


More information about the Python-Dev mailing list