[Python-ideas] Replacing the standard IO streams (was Re: changing sys.stdout encoding)
Stephen J. Turnbull
stephen at xemacs.org
Mon Jun 11 08:16:07 CEST 2012
MRAB writes:
> That's actually Python 3.1. From Python 3.2 it's slightly different,
> but still not quite right:
>
> Python 3.1: "hello\r\nhello\r\r\n"
> Python 3.2: "hello\nhello\r\n"
> Python 3.3.0a4: "hello\nhello\r\n"
>
> All on Windows.
<stifle o="self"/>
Hm. Maybe it's that port's implementation of universal newlines or
something like that? What happens if you use an explicit "end="
argument? (I don't have a Python 3 to check on Windows easily
available.)
More information about the Python-ideas
mailing list