patternpythonCriticalCanonical
What does __all__ mean in Python?
Viewed 0 times
does__all__meanwhatpython
Problem
I see
__all__ in __init__.py files. What does it do?Solution
It's a list of public objects of that module, as interpreted by
import *. It overrides the default of hiding everything that begins with an underscore.Context
Stack Overflow Q#44834, score: 885
Revisions (0)
No revisions yet.