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.

Author vincent.legoll
Recipients georg.brandl, vincent.legoll
Date 2008-08-26.15:57:43
SpamBayes Score 0.00020054077
Marked as misclassified No
Message-id <1219766265.83.0.904411616188.issue3687@psf.upfronthosting.co.za>
In-reply-to
Content
The subprocess.Popen() object documentation should indicate
that the stdout attribute should not be modified after
object construction. Because that won't work.

Or the attribute may be rendered read-only

>>> from subprocess import Popen, PIPE
>>> import sys, os
>>> p1 = Popen(["echo", "1"], stdout = PIPE)
>>> p2 = Popen(["cat"], stdin = p1.stdout, stderr = PIPE, stdout = PIPE)
>>> p2.stdout = sys.stdout
>>> print p2.communicate()

This blocks forever
History
Date User Action Args
2008-08-26 15:57:46vincent.legollsetrecipients: + vincent.legoll, georg.brandl
2008-08-26 15:57:45vincent.legollsetmessageid: <1219766265.83.0.904411616188.issue3687@psf.upfronthosting.co.za>
2008-08-26 15:57:44vincent.legolllinkissue3687 messages
2008-08-26 15:57:43vincent.legollcreate