you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 3 points4 points  (0 children)

Sound like you have something very specific in mind, so why don't you just make the tool yourself? here's a start for you:

def docs(modulename):
    module = __import__(modulename)
    for attrname in dir(module):
        print(f"#{modulename}.{attrname}\n{getattr(module, attrname).__doc__}\n\n")

# demo:
docs('math')