Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100385

Re: Python IO Redirection to Console

From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: Python IO Redirection to Console
Date 2015-12-13 14:13 -0500
Message-ID <mailman.214.1450034002.12405.python-list@python.org> (permalink)
References <36dcb7f1-53a1-42a1-b0de-94b919decb42@googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python IO Redirection to Console austin aigbe <eshikafe@gmail.com> - 2015-12-13 06:14 -0800
  Re: Python IO Redirection to Console Terry Reedy <tjreedy@udel.edu> - 2015-12-13 14:13 -0500

csiph-web