[Tutor] reassigning/replacing sys.stdout

Tony Cappellini cappy2112 at gmail.com
Tue Jan 30 18:42:49 CET 2007

That would be ideal- but I'm using 2.4 now, and the people using the app
would also have to upgrade to 2.5.
I don't like upgrading unless there's a pressing need.

On 1/30/07, Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
> > The author of the cmd line app suggested I temporarily replace
> > sys.stdout'with a file descriptor class that can write directly to the
> > gui'. The author is now out of communications for a few weeks, so I
> > can't elaborate.
> It sounds like the subprocess module might be very useful here:
>      http://www.python.org/doc/lib/node529.html
> The reason is because you can use the PIPE option, which gives you a
> file-like object of the other process's stdout.  There's an example of
> this in action here:
>      http://www.python.org/doc/lib/node536.html
> If you have more questions, please feel free to ask.  Best of wishes!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070130/a2def359/attachment-0001.htm 

More information about the Tutor mailing list