[New-bugs-announce] [issue9549] Remove sys.setdefaultencoding()

Antoine Pitrou report at bugs.python.org
Mon Aug 9 21:50:53 CEST 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

The use of sys.setdefaultencoding() has always been discouraged, and it has become a no-op in py3k (the encoding is hard-wired to utf-8 and changing it raises an error). It is time to remove this function entirely.

The state of PyUnicode_SetDefaultEncoding() should be also considered, since it has become useless for the same reasons.

----------
components: Interpreter Core, Library (Lib)
messages: 113461
nosy: pitrou
priority: low
severity: normal
stage: needs patch
status: open
title: Remove sys.setdefaultencoding()
type: behavior
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9549>
_______________________________________


More information about the New-bugs-announce mailing list