Re: [Python-Dev] dir() and __all__

21 Feb
2008
21 Feb
'08
7:17 p.m.
[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
5703
Age (days ago)
5703
Last active (days ago)
0 comments
1 participants
participants (1)
-
Raymond Hettinger