[Tutor] key detection

Steven D'Aprano steve at pearwood.info
Wed May 6 03:35:18 CEST 2015


On Tue, May 05, 2015 at 04:47:24PM -0700, Jim Mooney Py3.4.3winXP wrote:

> An ancillary question. I found a readchar that purports to install in py2
> and 3 but fails in 3. The errors (something from the encodings module)
> won't copy from the console, so I thought I could redirect them like so:
> 
> python3 setup.py > errors.txt

Is this under Linux or another Unix? If so, > only redirects stdout, not 
stderr, so you need:

python3 setup.py 2> errors.txt

to capture the errors.

I have no idea if Windows works the same way.



-- 
Steve


More information about the Tutor mailing list