Python IO Redirection to Console
Terry Reedy
tjreedy at udel.edu
Sun Dec 13 14:13:04 EST 2015
On 12/13/2015 9:14 AM, austin aigbe wrote:
> I am trying to redirect the IO (stdout, stdin and stderr) to the console.
For a program run from the console, console IO is the default. One must
explicitly redirect to a file stream or pipe. At least on Windows,
console IO is also the default for a program run with subprocess.
Again, anything else must explicitly given.
> Is there a Python module for this?
Unless I have completely misunderstood the question, not needed.
--
Terry Jan Reedy
More information about the Python-list
mailing list