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/011546.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
Fri, 12 Jan 2001 04:09:13 +0200 (IST)
On Thu, 11 Jan 2001 07:14:17 -0800 (PST), Ka-Ping Yee <ping@lfw.org> wrote:
> On Wed, 10 Jan 2001, Guido van Rossum wrote:
> > Yes -- I came up with the same thought.
> > 
> > So here's a plan: somebody please submit a patch that does only one
> > thing: from...import * looks for __all__ and if it exists, imports
> > exactly those names.  No changes to dir(), or anything.
> 
> Please don't use __all__.  At the moment, __all__ is the only way
> to easily tell whether a particular module object really represents
> a package

Why not __init__? It has to be there, and is in no other module object.
-- 
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