[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2011-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: documentation updated in r88352. thanks! -- assignee: docs@python -> gregory.p.smith resolution: -> fixed status: open -> closed ___ Python tracker

[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2011-02-03 Thread Ross Lagerwall
Ross Lagerwall added the comment: The docs should be updated. This has been noted in msg54949 and http://www.enricozini.org/2009/debian/python-pipes/ Perhaps this example will make it clear: import subprocess p1 = subprocess.Popen(["yes"], stdout=subprocess.PIPE) p2 = subprocess.Popen(["head"

[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2010-12-25 Thread Éric Araujo
Éric Araujo added the comment: As a non-expert user of subprocess, calling close before communicate seems strange to me. Does the example code with a bug work if close is called after communicate? In the 3.2 docs, we could update the example to use a with statement, unless it is deemed a di

[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2010-08-04 Thread Mark Lawrence
Changes by Mark Lawrence : -- assignee: georg.brandl -> d...@python nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mail

[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2010-01-11 Thread Steven K. Wong
New submission from Steven K. Wong : The example code at http://www.python.org/doc/2.6.2/library/subprocess.html#replacing-shell-pipeline should be updated to add the close() call noted below: output=`dmesg | grep hda` ==> p1 = Popen(["dmesg"], stdout=PIPE) p2 = Popen(["grep", "hda"], stdin=p1