A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/011407.html below:

[Python-Dev] Add __exports__ to modules

[Python-Dev] Add __exports__ to modulesGreg 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/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4