Why there is no "setdefaultencoding" in sys module?

Christian Heimes lists at cheimes.de
Fri Jul 9 13:25:31 EDT 2010


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

Just don't. If you change the default encoding you are going to break
important data structures like dicts in a subtle and hard to detect way.
If your application needs to change the default encoding, it's broken.
The function is removed for a very good reaso.




More information about the Python-list mailing list