This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: wrong documentation for popen2
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: jlgijsbers, winitzki
Priority: normal Keywords:

Created on 2004-01-29 00:07 by winitzki, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg19844 - (view) Author: Serge Winitzki (winitzki) Date: 2004-01-29 00:07
the python 2.3.3 library documentation for popen2 says:
( file:///usr/share/doc/python2.3/html/lib/module-popen2.html)

popen2( cmd[, bufsize[, mode]])
Executes cmd as a sub-process. Returns the file objects  (child_stdout, child_stdin).

however, the actual behavior of python 2.3.3 is to return (child_stdin, child_stdout) - in the reverse order.

I haven't checked with popen3 and popen4.

thanks.
msg19845 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2005-01-09 01:08
Logged In: YES 
user_id=469548

This has either been fixed in Python 2.4, or you're
confusing popen2.popen2 with os.popen2, which does return
the file objects in the order you describe.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39877
2004-01-29 00:07:13winitzkicreate