[Python-3000] PEP 3138- String representation in Python 3000 (original) (raw)

Paul Moore p.f.moore at gmail.com
Thu May 15 12:06:56 CEST 2008


On 15/05/2008, Guido van Rossum <guido at python.org> wrote:

Consider code that gets an encoding passed in as a variable e. It knows it has a bytes instance b. To encode b from bytes to str (unicode), it can use s = b.decode(e).

To encode, you use .decode? It's nice to know it's not just me who has trouble keeping the terminology straight...

Paul.



More information about the Python-3000 mailing list