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: subprocess.py doc bug in 2.4c1
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: astrand, jdc
Priority: normal Keywords:

Created on 2004-11-26 15:14 by jdc, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg23321 - (view) Author: Dan Christensen (jdc) Date: 2004-11-26 15:14
This example from subprocess.py:

Replacing shell pipe line
-------------------------
output=`dmesg | grep hda`
==>
p1 = Popen(["dmesg"], stdout=PIPE)
p2 = Popen(["grep", "hda"], stdin=p1.stdout)
output = p2.communicate()[0]

needs to have stdout=PIPE added to the second Popen call.  The same error occurs in PEP 324.

Dan
msg23322 - (view) Author: Peter Åstrand (astrand) * (Python committer) Date: 2004-11-30 18:12
Logged In: YES 
user_id=344921

Fixed in trunk:
libsubprocess.tex 1.3
subprocess.py 1.9
pep-0324.txt 1.7

Fixed in branch:
libsubprocess.tex 1.2.2.1
subprocess.py 1.8.2.1
History
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41231
2004-11-26 15:14:08jdccreate