I've seen it a lot in python/Lib source code but I don't know what it is for.
I thought it was used to limit accessible members of of a module. So only the elements at __all__
will show up when dir(module)
.
I did a little example and saw it was not working as I expected.
So... What's the python __all__
module level variable for?