On Mon, Jan 25, 2021 at 5:49 PM Inada Naoki <songofaca...@gmail.com> wrote:
> On Tue, Jan 26, 2021 at 10:22 AM Guido van Rossum <gu...@python.org> > 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-change-the-world/>
_______________________________________________ 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/ZT66Q2UMDYJBOKM7GAMTLTPIXFVXZMBG/ Code of Conduct: http://python.org/psf/codeofconduct/