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/2008-February/077069.html below:

[Python-Dev] dir() and __all__

[Python-Dev] dir() and __all__ [Python-Dev] dir() and __all__Raymond Hettinger python at rcn.com
Fri Feb 22 02:17:13 CET 2008
[Benjamin]
> Are you proposing just a list those modules 
> or all module objects? 

The idea is dead.  Guido specified that the 
dir() function returns a list of names for
which hasattr() will succeed.

I only brought this up because a colleague was
using dir() on modules to find-out about the API.
He was thrown-off by some of the entries in dir(logging).


Raymond
More information about the Python-Dev mailing list

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