3 ms·
I think that help() is great too, but I'm not a fan of the interactive nature of it. I'd rather the raw text just get dumped to a file so I can browse it more
by ericra 3y ago
I think that help() is great too, but I'm not a fan of the interactive nature of it. I'd rather the raw text just get dumped to a file so I can browse it more easily, so I do something like this[1] to print the output of both the help() and dir() functions on any Python object to a text file in the current directory. That way it's a bit easier to search through if it's a lot of info.
[1] https://github.com/EricRa/python-scripts/blob/main/modules/print_help/print_help.py https://github.com/EricRa/python-scripts/blob/main/modules/p...
- SushiHippie 3y agoYou could also make use of the pydoc command either dump the help text via python -m pydoc requests.Request > req_help.txt or open a web server to browse the modules and their help texts via python -m pydoc -b