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

Nov. 19, 2013
5:31 p.m.
(Sorry for posting twice, forgot to add the list to Cc.) On Tue, Nov 19, 2013 at 6:08 PM, <random832@fastmail.us> wrote:
Well, if you use the textio object than there are no problems and you couldn't use buffered or raw io at all with the other approach. If you try to read one byte from raw io, it just returns b''. More serious problems occur with buffered io if you somehow get a buffer of odd length. In that case flush call ends in infinity loop. Some of these could be solved by adding some checking code to buffered io which will raise an exception if you try to do something bad.
4138
Age (days ago)
4138
Last active (days ago)
0 comments
1 participants
participants (1)
-
Draic Kin