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 ilgiz
Recipients
Date 2007-06-13.17:07:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content

Could you try the same command from your shell?

I am guessing "yes" will write an error message about the broken pipe to stderr.

$ python -c 'import sys, os; sys.stdout.write(os.popen("yes | echo hello").read())'
yes: standard output: Broken pipe
yes: write error
hello

$ python -c 'import sys, os; sys.stdout.write(os.popen3("yes | echo hello")[1].read())'
hello
History
Date User Action Args
2007-08-23 14:54:59adminlinkissue1736483 messages
2007-08-23 14:54:59admincreate