I\'m trying to implement something similar to git log, which will only page the output if the log is of a certain length. If you\'re not familiar with git, I\'
import pydoc
text = '... some text ... '
pydoc.pager(text)
This (on my opensuse linux box) sends the text to a pager ('less' in my case), and works the same as calling "help(... python command...)" within the Python interpreter.