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/039667.html below:

[Python-Dev] Alternate notation for global variable assignments

[Python-Dev] Alternate notation for global variable assignments [Python-Dev] Alternate notation for global variable assignmentsBarry Warsaw barry at python.org
Mon Oct 27 19:11:52 EST 2003
On Mon, 2003-10-27 at 19:00, Delaney, Timothy C (Timothy) wrote:

> First of all, I'm strongly *against* the idea of :var.
> 
> However, I think a syntax that would work with no ambiguities, and not look too bad, would be:
> 
>     .var
> 
> e.g.
> 
>     sublist = lst[.var]
> 
> I would also be strongly against this suggestion - it simply deals with the problems I see with the current suggestion. It has its own problems, including (but not limited to) not being very obvious.

What I really want is access to a namespace, and then all the normal
Python attribute access notations just work.  They're one honking great
idea after all.

This was behind the "import __me__" suggestion for access to module
globals.  Why can't we have something similar for nested functions?

-Barry



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