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/2001-January/011470.html below:

[Python-Dev] Add __exports__ to modules

[Python-Dev] Add __exports__ to modules [Python-Dev] Add __exports__ to modulesKa-Ping Yee ping@lfw.org
Mon, 8 Jan 2001 17:51:15 -0800 (PST)
On Mon, 8 Jan 2001, Skip Montanaro wrote:
> Okay, how about this as a compromise first step?  Allow programmers to put
> __exports__ lists in their modules but don't do anything with them *except*
> modify dir() to respect that if it exists?

I'd say: Just have dir() and import * pay attention to __exports__.
Don't mess with getattr or __dict__.


-- ?!ng

Happiness comes more from loving than being loved; and often when our
affection seems wounded it is is only our vanity bleeding. To love, and
to be hurt often, and to love again--this is the brave and happy life.
    -- J. E. Buchrose 




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