A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-January/011389.html below:

[Python-Dev] Add __exports__ to modules

[Python-Dev] Add __exports__ to modulesChristian Tismer tismer@tismer.com
Sun, 07 Jan 2001 20:05:21 +0200
Skip Montanaro wrote:
> 
>     Neil> I think you, Skip and Moshe are missing a big advantage of having
>     Neil> the __exports__ mechanism.  It should allow some attribute access
>     Neil> inside of modules to become faster (like LOAD_FAST for locals).  I
>     Neil> think that optimization could be implemented without too much
>     Neil> difficultly.
> 
> True enough, that hadn't occurred to me.  Knowing that now, I still don't
> think consistency of the interface should suffer as a result of
> under-the-covers performance gains.

Ok, vice versa:
Given that we can support access control via __exports__
for modules, classes and instances as well, *and* if we
can think up a scheme that allows a LOAD_FAST like speedup
for all of these cases at the same time,
then I would say +1, otherwise -0, half-hearted solution.

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer@tismer.com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com



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