3 ms·
setting module-level __all__ can modify what gets pulled in a wild import, but that's about it.
by MBlume 15y ago
setting module-level __all__ can modify what gets pulled in a wild import, but that's about it.
- masklinn 15y agoIt's also used by `help()` (and pydoc): if there's an __all__, help will only pull the docstrings of the stuff in __all__. `dir()`, on the other hand, does not care.