[Python-Dev] Add __exports__ to modules

Christian Tismer tismer@tismer.com
Wed, 10 Jan 2001 13:06:42 +0200


Ka-Ping Yee wrote:
> 
> 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__.

quadruple-nodd - 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