[Tutor] Pager in Python?

Lee Harr missive at hotmail.com
Wed Jul 20 00:09:36 CEST 2005


>Is there a command like more(1) or less(1) in python to display
>the output of a command (e.g. dir()) one page at a time?


How are you using dir() ?

Is it in the "DOS Window" ?
One option would be to just get a better console.

You also might want to look at something like ipython.

Using that, dir(foo) does not run through the pager, but
foo? does (and provides a lot of nice extras also).

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/



More information about the Tutor mailing list