[New-bugs-announce] [issue9549] Remove sys.setdefaultencoding()
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)
stage: needs patch
title: Remove sys.setdefaultencoding()
versions: Python 3.2, Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce