Python Forum

Full Version: How to scroll through results from help(object)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I would just like to have a way to see the output from help without it spewing the entire result.

I want to do something theoretical like:

help(my_var) | less

which would let me see the result of help and press a button to scroll through it.

I tried searching for "help method" and "help spam" but did not find anything in the forum. I've also been googling to no avail.

Any help on this subject appreciated.
Try this:

python -c "help('datetime')" | less