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

[Python-Dev] Re: Dynamic nested scopes

[Python-Dev] Re: Dynamic nested scopes [Python-Dev] Re: Dynamic nested scopesM.-A. Lemburg mal@lemburg.com
Fri, 03 Nov 2000 21:14:17 +0100
[Making builtins static...]

What about the idea to have the compiler make the decision
whether a global symbol may be considered static based on a 
dictionary ?

In non-optimizing mode this dictionary would be empty, with -O
it would include all builtins which should never be overloaded
and with -OO even ones which can be overloaded such as open()
in addition to some standard modules which are known to only
contain static symbols.

Perhaps this needs some additional help of the "define" statement
we planned as dynamic compiler interface ?! ...

define static_symbols = *            # all globals in this module
define static_symbols = func1, func2 # only these two
etc.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/



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