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

[Python-Dev] statically nested scopes

[Python-Dev] statically nested scopesGuido van Rossum guido@python.org
Thu, 02 Nov 2000 02:51:15 -0500
[Barry]
> Saw that.  I was just thinking that locals() already does what
> vars()-no-args does, so why have two ways to do the same thing?

Not clear -- maybe one of them needs to be made obsolete.

>     GvR> I don't think you need to have a mechanism to find all
>     GvR> accessible names; I don't see a common use for that.  It's
>     GvR> sufficient to have a mechanism to look up any specific name
>     GvR> according to whatever mechanism we decide upon.  This is
>     GvR> needed for internal use of course; it can also be useful for
>     GvR> e.g. variable substitution mechanisms like the one you
>     GvR> recently proposed or Ping's Itmpl.
> 
> Ah, something like this then:
[Example deleted]

I'm not sure that the mechanism provided should follow the mapping
API.  *All* it needs to do it provide lookup capability.  Having
.keys(), .items(), .has_key() etc. just slows it down.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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