On Mon, Jan 25, 2021 at 5:49 PM Inada Naoki
On Tue, Jan 26, 2021 at 10:22 AM Guido van Rossum
wrote: Older Pythons may be easy to drop, but I'm not so sure about older
unofficial docs. The open() function is very popular and there must be millions of blog posts with examples using it, most of them reading text files (written by bloggers naive in Python but good at SEO).
I would be very sad if the official recommendation had to become "[for
the most common case] avoid open(filename), use open_text(filename)".
I agree that. But until we switch to the default encoding of open(), we must recommend to avoid `open(filename)` anyway. The default encoding of VS Code, Atom, Notepad is already UTF-8.
Maybe, we need to update the tutorial (*) to use `encoding="utf-8"`.
Telling people to always add `encoding='utf8'` makes much more sense to me than introducing a new function and telling them to do that. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...