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/2000-December/011041.html below:

[Python-Dev] new draft of PEP 227

[Python-Dev] new draft of PEP 227 [Python-Dev] new draft of PEP 227Paul Prescod paulp@ActiveState.com
Fri, 15 Dec 2000 08:16:37 -0800
Guido van Rossum wrote:
> 
> ...
> 
> Can we cut this out please?  Paul is misguided.  There's no reason to
> forbid a local shadowing a global.  All languages with nested scopes
> allow this.

Python is the only one I know of that implicitly shadows without
requiring some form of declaration. JavaScript has it right: reading and
writing of globals are symmetrical. In the rare case that you explicitly
want to shadow, you need a declaration. Python's rule is confusing,
implicit and error causing. In my opinion, of course. If you are
dead-set against explicit declarations then I would say that disallowing
the ambiguous construct is better than silently treating it as a
declaration.

 Paul Prescod



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