Message5561

Author steveims
Recipients steveims
Date 2010-03-05.04:52:48
SpamBayes Score 3.2300886e-09
Marked as misclassified No
Message-id <1267764769.04.0.204780398253.issue1569@psf.upfronthosting.co.za>
In-reply-to
Content
This is an embedded scenario.
I've set the output stream for the interpreter:  print and sys.stdout.write behave as expected; subprocess.call() does not.

Example code shown in the attached files.
Results of running the example are shown below.  I expected all of the output to be written to the output stream specified to the interpreter, but that wasn't the case.


Output written directly to stdout (problem:  bypassed the specified output stream):
===================================================================================
from subprocess.call without stdout; 

Output written to the output stream (as expected):
==================================================
os received:  [from print; 
from sys.stdout; from subprocess.call with stdout; 
]
History
Date User Action Args
2010-03-05 04:52:49steveimssetrecipients: + steveims
2010-03-05 04:52:49steveimssetmessageid: <1267764769.04.0.204780398253.issue1569@psf.upfronthosting.co.za>
2010-03-05 04:52:48steveimslinkissue1569 messages
2010-03-05 04:52:48steveimscreate