How to turn a string into a list of integers?

Chris Angelico rosuav at gmail.com
Mon Sep 8 02:14:29 CEST 2014


On Mon, Sep 8, 2014 at 4:34 AM, Rustom Mody <rustompmody at gmail.com> wrote:
> IOW I interpret MRAB's statement that strings should not be thought
> of as encoded because they consist of abstract code-points, seems to me (a unicode-ignoramus!) a reasonable outlook

The original question was regarding storage - how PEP 393 says that
strings will be encoded in memory in any of three ways (Latin-1,
UCS-2/UTF-16, or UCS-4/UTF-32). But even in our world, that is not
what a string *is*, but only what it is made of.

ChrisA



More information about the Python-list mailing list