comparing Unicode and string

Neil Cerutti horpner at yahoo.com
Thu Oct 19 20:27:23 CEST 2006


On 2006-10-19, luc.saffre at gmail.com <luc.saffre at gmail.com> wrote:
> Suggestion: shouldn't an error raise already when I try to
> assign s2?

There's been discussion on pydev about changing this, but for now
I believe a str is a sequence of bytes in Python, rather than a
string of characters. My current project (an implementation of
the Glk API in Python) would be more troublesome to write if I
had to store all my latin-1 character strings as lists or arrays
of bytes.

-- 
Neil Cerutti



More information about the Python-list mailing list