On 2021-01-23 10:11, Chris Angelico wrote:
[snip]

Okay. If the goal is to make UTF-8 the default, may I request that PEP
597 say so, please? With a heading of "deprecation", it's not really
clear what its actual goal is.

  From the sound of things - and it's still possible I'm misreading PEP
597, my apologies if so - this open_text function wouldn't really
solve anything much, and the original goal of "change the default
encoding to UTF-8" is better served by 597.

I use Windows and I switched to UTF-8 years ago. However, the standard on Windows is 'utf-8-sig', so I'd probably prefer it if the default when _reading_ was 'utf-8-sig'. (I'm not bothered about writing; I can still be explicit if I want 'utf-8-sig' for Windows-specific UTF-8 files.)
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/SVDIUALZVHPQLBZPFRETXFKN2GIJNQCD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to