You can use vars().items()
:
for k, obj in vars().items():
if k[0] != '_':
print(type(obj), obj.__doc__)
help()
on vars
:
vars(...)
vars([object]) -> dictionary
Without arguments, equivalent to locals().
With an argument, equivalent to object.__dict__.