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.)