[Python-ideas] Replacing the standard IO streams (was Re: changing sys.stdout encoding)
Amaury Forgeot d'Arc
amauryfa at gmail.com
Mon Jun 11 10:11:34 CEST 2012
2012/6/11 Paul Moore <p.f.moore at gmail.com>
> Explicit end= makes no difference to the behaviour. In fact, a minimal
> test suggests that universal newline mode is not enabled on Windows in
> Python 3. That's a regression from 2.x. See below.
>
> D:\Data>py -3 -c "print('x')" | od -c
> 0000000 x \n
> 0000002
>
> D:\Data>py -2 -c "print('x')" | od -c
> 0000000 x \r \n
> 0000003
>
This is certainly related to http://bugs.python.org/issue11990
--
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120611/ba0b14aa/attachment.html>
More information about the Python-ideas
mailing list