use `__all__` for comparison table generator
@@ -8,8 +8,9 @@ _footnotes = {}
def _get_functions(obj, exclude=None):
+ children = obj.__all__ if hasattr(obj, '__all__') else dir(obj)
return set([
- n for n, target in [(n, getattr(obj, n)) for n in dir(obj)]
+ n for n, target in [(n, getattr(obj, n)) for n in children]
if (
# not in exclude list
(exclude is None or n not in exclude)
