Click to See Complete Forum and Search --> : python interpreter (how to " | less "


chzlchp
06-04-2005, 11:34 AM
I've got the python interpreter open on a TTY screen and I'm looking for verbose info on modules '>>>help('name')' . If I type any module name ('math') for instance, I get detail one page at a time (using the <space bar> advance, etc. etc.).

However, when I enter >>>help('modules') the entire offering of module names spills onto the screen, and partway off the top, since there is more than a screenful of data there. I cannot find a way to paginate that data (such as using ' | less'). Many of these bash commands apparently don't apply in the python interpreter environment.

The python project (Google) informed me that the modules are all named at: /usr/lib/python2.3 I looked there, but the listed names appear to be one level deeper (i.e. the dot notation functions).

Any suggestions how to slow down the listing of these module names? Oh, yea, as an afterthought, apparently the pipe does not work in the interpreter. I also tried redirecting the list to lpr, with zilch results.

jacobb
06-07-2005, 07:52 AM
In normal shell

pydoc modules | less


:-)