[Python-Dev] Add __exports__ to modules

Greg Stein gstein@lyra.org
Sun, 7 Jan 2001 23:25:32 -0800


On Mon, Jan 08, 2001 at 02:05:46AM -0500, Tim Peters wrote:
>...
> modules aren't classes or instances, and in normal practice modules
> accumulate all sorts of accidental attrs (due to careless (== normal)
> imports, and module init code).  It doesn't make any *sense* that os exports
> "sys" either, or that random exports "cos", or that cgi exports "string", or
> ... this inelegance is ubiquitous.

Simple question: so what?

"Oh, no! My module exposes mod.sys! Oh, woe is me!"  *snort*

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/