[Patches] [ python-Patches-443551 ] Minor change to pager choice in pydoc.py

noreply@sourceforge.net noreply@sourceforge.net
Mon, 23 Jul 2001 12:48:59 -0700


Patches item #443551, was opened at 2001-07-22 09:22
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=443551&group_id=5470

Category: demos and tools
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Alex Coventry (alex_coventry)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Minor change to pager choice in pydoc.py

Initial Comment:
If $PAGER is not set, and the "less" command works,
then pydoc pipes its
output to less.  If $TERM is "dumb", or "emacs", this
is a pretty inconvenient
choice.  This patch sends the output to stdout in those
cases.  I find it easier
to use, especially when working with in a shell
subordinate to emacs, where
you can use the paging facilities of emacs itself
anyway.

Alex.


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-07-23 12:48

Message:
Logged In: YES 
user_id=3066

Checked in as Lib/pydoc.py revision 1.40, then changed to use plainpager in 1.41.

Can't we just nuke all the dumb terminals?

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-07-22 09:27

Message:
Logged In: YES 
user_id=6380

Shouldn't it return plainpager rather than a function that
doesn't page at all?


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=443551&group_id=5470