[Python-ideas] Re: Adding `open_text()` builtin function. (relating to PEP 597)

2021-01-26 Thread Stephen J. Turnbull
Chris Angelico writes: > Isn't that what file objects have attributes for? You're absolutely right. Not sure what I was thinking. (Note: not an excuse for my brain bubble, but Path.read_text and Path.read_binary do have this problem because they return str and bytes respectively.) > Do you g

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-26 Thread Inada Naoki
nOn Tue, Jan 26, 2021 at 5:53 PM M.-A. Lemburg wrote: > > Overall, I think the approach with two different binaries > is not going work well. Users will get confused and many problems > will arise due to users installing the wrong version for the apps > they use. > > We already let them choose bet

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-26 Thread M.-A. Lemburg
On 26.01.2021 09:24, Inada Naoki wrote: > And we can provide two versions of Python for Windows. > > * "Python (UTF-8 version)" will enable the UTF-8 mode by default. > * "Python (ANSI version)" will disable the UTF-8 mode by default. > > User can override the default by `-Xutf8` option and `PYTH

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-26 Thread Inada Naoki
On Tue, Jan 26, 2021 at 4:36 PM Eryk Sun wrote: > > One concern is what to do for the special "ansi" and "oem" encodings. > If scripts rely on them for IPC, such as with subprocess.Popen(), then > it could be frustrating if they're just synonyms for UTF-8 (code page > 65001). I've tested that it's