From: Steve I. <re...@bu...> - 2010-03-05 04:52:56
|
New submission from Steve Ims <ste...@ya...>: 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; ] ---------- components: Library messages: 5561 nosy: steveims severity: normal status: open title: subprocess.call() ignores interpreter.setOut() versions: 2.5.1 _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1569> _______________________________________ |