Totally confused by the str/bytes/unicode differences introduced in Pythyon 3.x

Giampaolo Rodola' gnewsg at gmail.com
Sat Jan 17 02:32:17 CET 2009


On 17 Gen, 02:24, MRAB <goo... at mrabarnett.plus.com> wrote:

> If you're truly working with strings of _characters_ then
> 'str' is what you need, but if you're working with strings of _bytes_
> then 'bytes' is what you need.

I work with string of characters but to convert bytes into string I
need to specify an encoding and that's what confuses me.
Before there was no need to deal with that.


--- Giampaolo
http://code.google.com/p/pyftpdlib



More information about the Python-list mailing list