Why there is no "setdefaultencoding" in sys module?

crow wentlv at gmail.com
Fri Jul 9 12:16:42 EDT 2010


On Jul 10, 12:06 am, crow <wen... at gmail.com> wrote:
> On Jul 10, 12:04 am, Steven D'Aprano <st... at REMOVE-THIS-
>
>
>
>
>
> cybersource.com.au> wrote:
> > 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-e...
>
> > Googling will find many discussions about this.
>
> > --
> > Steven
>
> Interesting, so it has been removed from python? then why it's still
> in document... It's really misleading.
>
> Thanks for your quick answer

oh, I take back my words, it's still there, just I need to
reload(sys).




More information about the Python-list mailing list