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 ronaldoussoren
Recipients
Date 2006-11-08.07:03:19
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=580910

IMHO this is "don't do that then" territory. You're poking around in the inside of file objects, you have to be careful if you do that.

BTW. What are you trying to accomplish? If you set sys.stdout to child_stdin (e.g. "import sys; sys.stdout = child_stdin"), print will write to the 
pipe. If you really want to be sure that the C-level variable stdout writes to the pipe: os.dup2(child_stdout.fileno(), 1). You can then close 
child_stdout, but still have to do the 'os.dup(1)' part if you want to restore the real stdout later on.
History
Date User Action Args
2008-01-20 09:59:03adminlinkissue1574310 messages
2008-01-20 09:59:03admincreate