[BangPypers] Redirection of standard output to a variable

S.Ramaswamy srsy70 at gmail.com
Mon May 12 08:48:25 CEST 2008


>
> I am trying to find a way from which I could redirect standard output to a
> variable.

You can redirect stdout and stderr to a file. Check out the following
section from Dive into Python, that has sample code:

http://www.diveintopython.org/scripts_and_streams/stdin_stdout_stderr.html

Ramaswamy


More information about the BangPypers mailing list