On Fri, Nov 21, 2014 at 6:14 PM, Marko Rauhamaa <ma...@pacujo.net> wrote: > Chris Angelico <ros...@gmail.com>: > >> On Fri, Nov 21, 2014 at 5:36 PM, Marko Rauhamaa <ma...@pacujo.net> wrote: >>> I'm saying equating an abstract data type (string) with its >>> representation (Unicode vector) is bad taste. >> >> What about "sequence of Unicode code points" is "representation"? What >> is your abstraction over that? > > The letter 'A' is a character. Unicode for the letter 'A' is 65. It is > very rarely that you care about that number. You are only interested in > the letter 'A', which you can use to spell people's names, for instance. > > When you read a book, you read the text, not the ink.
Then you need to read more about Unicode. The *codepoint* for the letter 'A' is 65. That is not Unicode, that is one part of the Unicode spec. ChrisA -- https://mail.python.org/mailman/listinfo/python-list