[Python-Dev] Add __exports__ to modules
Tue, 9 Jan 2001 06:08:29 +0200 (IST)
> It's not about keeping people out of your module. In fact I would
> propose that mod.__dict__ should be as loose as ever.
> 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? That would pretty up dir()
> output for newbies, almost certainly not break anything, improve the
> internal documentation of the modules that use __exports__, and still allow
> us to move in a more restrictive direction at a later time if we so choose.
I'm +1 on that personally.
Moshe Zadka <email@example.com>
This is a signature anti-virus.
Please stop the spread of signature viruses!