str(bytes) in Python 3.0

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Apr 12 21:36:31 EDT 2008


En Sat, 12 Apr 2008 11:25:59 -0300, Martin v. Löwis <martin at v.loewis.de>  
escribió:

>> And making an utf-8 encoding default is not possible without writing a
>> new function?
>
> There is no default encoding anymore in Python 3. This is by design,
> learning from the problems in Python 2.x.

So sys.getdefaultencoding() will disappear? Currently it returns "utf-8".
In case it stays, what is it used for?

-- 
Gabriel Genellina




More information about the Python-list mailing list