A RetroSearch Logo

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

Search Query:

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

[Python-Dev] Add __exports__ to modules

[Python-Dev] Add __exports__ to modules [Python-Dev] Add __exports__ to modulesMoshe Zadka moshez@zadka.site.co.il
Tue, 9 Jan 2001 01:13:21 +0200 (IST)
On Mon, 08 Jan 2001 09:33:09 -0500, Guido van Rossum <guido@python.org> wrote:
> > hehe... adding __exports__ to your module is fine. Adding more crud to
> > Python, in opposition to the "we're all adults" motto, doesn't seem Right.
> > 
> > Somebody wants to use "from foo import *" on a module not designed for it?
> > Too bad for them. If you're suggesting __exports__ is to patch over problems
> > caused by "from foo import *", then I think you're barking up the wrong tree
> > :-)
> 
> You haven't been answering many newbie questions lately, have you? :-)

Well, I have. 
And frankly, I think having "from foo import *" issue a warning at 2.1
a *much* better solution.
-- 
Moshe Zadka <sig@zadka.site.co.il>
This is a signature anti-virus. 
Please stop the spread of signature viruses!



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