[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-bugs-list
Subject:    [ python-Bugs-1073790 ] subprocess.py doc bug in 2.4c1
From:       noreply () sourceforge ! net (SourceForge ! net)
Date:       2004-11-30 19:13:01
Message-ID: E1CZCUk-0006Ow-KW () sc8-sf-web2 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1073790, was opened at 2004-11-26 16:14
Message generated for change (Comment added) made by astrand
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1073790&group_id=5470

Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Dan Christensen (jdc)
Assigned to: Nobody/Anonymous (nobody)
Summary: subprocess.py doc bug in 2.4c1

Initial Comment:
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


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

>Comment By: Peter ?strand (astrand)
Date: 2004-11-30 19:12

Message:
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


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

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic