[issue9549] Remove sys.setdefaultencoding()

Marc-Andre Lemburg report at bugs.python.org
Mon Aug 9 22:39:43 CEST 2010


Marc-Andre Lemburg <mal at egenix.com> added the comment:

Antoine Pitrou wrote:
> 
> 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.

+1 on removing both.

----------
nosy: +lemburg

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


More information about the Python-bugs-list mailing list