paging in python shell

Ben Finney bignose+hates-spam at benfinney.id.au
Mon Jan 14 18:05:38 EST 2008


John Machin <sjmachin at lexicon.net> writes:

> C:\junk>python demomore.py | more

Your example uses the OS shell to invoke a pager on the output of the
Python process. The OP was asking about paging *within* the Python
shell.

To my knowledge there's nothing in the default Python shell that
enables what the OP is asking for. There are other Python shells, e.g.
Idle, ipython, or a Python window inside Emacs, that may be better
suited.

-- 
 \      "Compulsory unification of opinion achieves only the unanimity |
  `\     of the graveyard."  -- Justice Roberts in 319 U.S. 624 (1943) |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list