[Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3?

Bill Janssen janssen at parc.com
Tue Jun 28 18:52:19 CEST 2011


M.-A. Lemburg <mal at egenix.com> wrote:

> How about a more radical change: have open() in Py3 default to
> opening the file in binary mode, if no encoding is given (even
> if the mode doesn't include 'b') ?

+1.

> That'll make it compatible to the Py2 world again and avoid
> all the encoding guessing.

Yep.

Bill


More information about the Python-Dev mailing list