[Python-Dev] Add __exports__ to modules

Skip Montanaro skip@mojam.com (Skip Montanaro)
Mon, 8 Jan 2001 13:49:22 -0600 (CST)

    Paul> It's not about keeping people out of your module.  In fact I would
    Paul> 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.