A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-February/132672.html below:

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

[Python-Dev] Tangent on class level scoping rules (was Re: PEP 463: Exception-catching expressions) [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 12:01:52 CET 2014
Chris Angelico wrote:
> On Sat, Feb 22, 2014 at 10:57 AM, Greg Ewing
> <greg.ewing at canterbury.ac.nz> wrote:
> 
>>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?
> 
> An inner scope should shadow rather than unbinding.

It would. The name being unbound would be the renamed
inner one, not the one being shadowed.

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4