[Python-ideas] Unicode stdin/stdout (was: Re: python 3.3repr)

random832 at fastmail.us random832 at fastmail.us
Tue Nov 19 18:08:23 CET 2013


On Tue, Nov 19, 2013, at 4:46, drekin at gmail.com wrote:
> I really wanted to be able to write Unicode in Windows console, so I have
> written the following code: http://bugs.python.org/file31756/streams.py
> (based on other samples of code I found), in connection with
> http://bugs.python.org/issue1602 . It addresses the design of using as
> much as possible from io hierarchy. It definitely doesn't cover many
> details but I actually use it in my interactive console.

For this whole tactic of "using as much as possible from the io
hierarchy" and acting like a raw stream that reads UTF-16 bytes, I'm
worried that at some point it's going to run into something that tries
to read a single byte - to which your code will return 0.


More information about the Python-ideas mailing list