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

Feb. 22, 2008
8:17 a.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
6233
Age (days ago)
6233
Last active (days ago)
0 comments
1 participants
participants (1)
-
Raymond Hettinger