[Python-Dev] Add __exports__ to modules

Ka-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