Message71983
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 |
|
Date |
User |
Action |
Args |
2008-08-26 15:57:46 | vincent.legoll | set | recipients:
+ vincent.legoll, georg.brandl |
2008-08-26 15:57:45 | vincent.legoll | set | messageid: <1219766265.83.0.904411616188.issue3687@psf.upfronthosting.co.za> |
2008-08-26 15:57:44 | vincent.legoll | link | issue3687 messages |
2008-08-26 15:57:43 | vincent.legoll | create | |
|