[Python-bugs-list] [ python-Bugs-406280 ] Python 2.1b1 - pydoc shows nothing

nobody nobody@sourceforge.net
Tue, 06 Mar 2001 05:06:25 -0800


Bugs #406280, was updated on 2001-03-06 05:06
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=406280&group_id=5470

Category: Python Library
Group: None
Status: Open
Priority: 5
Submitted By: Paul Moore
Assigned to: Nobody/Anonymous
Summary: Python 2.1b1 - pydoc shows nothing

Initial Comment:
Platform: Windows 2000, Python 2.1b1

The pydoc script works fine in "serve documents to a 
browser" mode (python pydoc). Also, running it as a 
command line application, as "python pydoc pydoc", 
works fine when the environment variable PAGER is 
unset.

However, when I have PAGER=less, I get no output at 
all.

It looks like a bug in pydoc.pipepager(), which is the 
result of a bug in os.popen(). I can work around the 
bug by using pydoc.tempfilepager() in place of 
pydoc.pipepager(), but I don't know what the 
underlying popen() bug is.

To demonstrate the os.popen() bug, see the attached 
interactive session:

C:\Data>python21
Python 2.1b1 (#11, Mar  2 2001, 11:23:29) [MSC 32 bit 
(Intel)] on win32
Type "copyright", "credits" or "license" for more 
information.
>>> import os
>>> a = os.popen("more", "w")
>>> a.write("Hello")
>>> a.close()

Run this, and note that the "More" program never 
starts...

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

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