[SUSPICIOUS MESSAGE] Re: Cult-like behaviour [was Re: Kindness]
antoon.pardon at vub.be
Mon Jul 16 08:12:06 EDT 2018
On 15-07-18 09:33, Marko Rauhamaa wrote:
> Paul Rubin <no.email at nospam.invalid>:
>> Py3's unicode picture is described here and it isn't pretty:
> From the link:
> The much more likely thing to happen is that people stick to Python 2
> or build broken stuff on Python 3. Or they go with Go. Which uses an
> even simpler model than Python 2: everything is a byte string. The
> assumed encoding is UTF-8. End of the story.
> I have similar feelings, except that I'm not convinced Go is the answer.
I really don't understand why the author of that article didn't just copy
his python2 program but used sys.stdin.buffer and sys.sydout.buffer instead
of plain sys.stdin and stdout.
AFAIU that would have worked like he wanted to, since it would have copied
bytes just as he wanted to. I have searched for an explanation for why
that wouldn't have worked and didn't find it.
More information about the Python-list