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

[Python-Dev] dir()/__all__/etc

[Python-Dev] dir()/__all__/etc [Python-Dev] dir()/__all__/etcTim Peters tim.one@home.com
Thu, 11 Jan 2001 21:33:59 -0500
[Neil Schemenauer]
> I'm -1 on making dir() pay attention to __all__.

Me too.  The original __exports__ idea was an ironclad guarantee about which
names were externally visible for *any* purpose.  Then it made sense to
restrict dir() accordingly.  But if __all__ is just "a hint" (to be ignored
or honored at whim, by whoever chooses), the introspective uses of dir()
must be served too.

> I'm +1 on adding a help() function which pays attention to
> __all__ and (optionally?) prints doc strings.

I can't be +1 on anything that vague -- although I'm +1 on each part of it
if done in exactly the way I envision <wink>.




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