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/2003-October/039462.html below:

[Python-Dev] let's not stretch a keyword's use unreasonably, _please_...

[Python-Dev] let's not stretch a keyword's use unreasonably, _please_... [Python-Dev] let's not stretch a keyword's use unreasonably, _please_...Alex Martelli aleaxit at yahoo.com
Fri Oct 24 15:18:49 EDT 2003
On Friday 24 October 2003 08:26 pm, Oren Tirosh wrote:
   ...
> How about using the word 'global' to get the current module object?
> A precedent for this is None which is on its way to becoming a keyword
> to get that "particular object".
>
> A bit of parser magic would be required so global can still work
> as a declaration for compatibility.

Unfortunately I think Guido clarified in a previous post the amount of
parser magic needed for that is excessive -- no lookahead allowed.

If we managed to tweak the parser, we'd still have the issue of keyword
inappropriateness -- and further stretching if we also want to use it to
allow rebinding of outer-scope variables that AREN'T "global" in any
sense whatsoever.  So I'd much rather have 'scope' and no issue with
parser magic...


Alex


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