A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-June/112110.html below:

set the default encoding to 'utf-8' in Python 3.3?

[Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3? [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4