[Python-Dev] Divorcing str and unicode (no more implicit conversions).

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Sat Oct 15 10:01:14 CEST 2005

Martin Blais wrote:
> On 10/3/05, Michael Hudson <mwh at python.net> wrote:
>> Martin Blais <blais at furius.ca> writes:
>> > How hard would that be to implement?
>> import sys
>> reload(sys)
>> sys.setdefaultencoding('undefined')
> Hmmm any particular reason for the call to reload() here?

Yes. setdefaultencoding() is removed from sys by site.py. To get it
again you must reload sys.


Mail address is perfectly valid!

More information about the Python-Dev mailing list