Re: [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)

2017年12月05日 22:31:32 -0800

On 6 December 2017 at 16:18, Glenn Linderman <[email protected]> wrote:
> "b" mostly matters on Windows, correct? And Windows doesn't use C or POSIX
> locale, correct? And if these are correct, then is this an issue? And if so,
> why?
In Python 3, "b" matters everywhere, since it controls whether the
stream gets wrapped in TextIOWrapper or not.
It's only in Python 2 that the distinction is Windows-specific (where
it controls how "\r\n" sequences get handled).
Cheers,
Nick.
-- 
Nick Coghlan | [email protected] | Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to