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/011464.html below:

[Python-Dev] Add __exports__ to modules

[Python-Dev] Add __exports__ to modules [Python-Dev] Add __exports__ to modulesThomas Wouters thomas@xs4all.net
Mon, 8 Jan 2001 23:08:50 +0100
On Tue, Jan 09, 2001 at 02:03:00AM +0200, Moshe Zadka wrote:

> > (2) Under exactly what circumstances do you want from foo import *
> >     issue a warning?

> All.
> If you want to be less extreme, don't warn if the module defines
> a __from_star_ok__

We already have a perfectly acceptable way of turning off warnings in
particular circumstances. I'm +1 on warning against using 'from spam import
*' by the way, though it would be even better (+2!) if there was a 'import *
considered harmful' page/chapter in the documentation somewhere, so we could
point to it.

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!



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