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.

Title: doc bug in 2.4c1
Type: Stage:
Components: Documentation Versions: Python 2.4
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

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.

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

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

Fixed in branch:
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41231
2004-11-26 15:14:08jdccreate