[Python-bugs-list] [ python-Bugs-471615 ] Incorrepopen2 exit status misrepresented

noreply@sourceforge.net noreply@sourceforge.net
Mon, 15 Oct 2001 23:34:52 -0700


Bugs item #471615, was opened at 2001-10-15 23:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=471615&group_id=5470

Category: Documentation
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Incorrepopen2 exit status misrepresented

Initial Comment:
The docs for the os module describe popen2, 
popen3, and popen4 as though they behaved like 
popen.

Specifically, the doc says that "The exit status of 
the command (encoded in the format specified for 
wait()) is available as the return value of the close() 
method of the file object ..."

This is not true. popen2 and friends do not return 
process exit status this way. Instead, they provide 
a wait() method for fetching process status. The 
docs for  the popen2 module more truthfully 
describe how exit status is returned.

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

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