Why there is no "setdefaultencoding" in sys module?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Jul 9 12:04:02 EDT 2010


On Fri, 09 Jul 2010 08:58:35 -0700, crow wrote:

> So, my questions: why there is no setdefaultencoding in sys module? if I
> want to change system's default encoding, what should I do?

I think the answer is:

Don't.

If you do, you will break built-ins.

http://tarekziade.wordpress.com/2008/01/08/syssetdefaultencoding-is-evil/


Googling will find many discussions about this.



-- 
Steven



More information about the Python-list mailing list