Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'that?': 0.05; '21,': 0.07; "'a'": 0.09; '(unicode': 0.09; 'abstraction': 0.09; 'instance.': 0.09; "people's": 0.09; 'subject:2.7': 0.09; 'cc:addr:python- list': 0.11; "'a',": 0.16; 'character.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'rarely': 0.16; 'subject:unicode': 0.16; 'unicode,': 0.16; 'unicode.': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'text,': 0.24; 'unicode': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'fri,': 0.33; 'subject:time': 0.33; 'subject: (': 0.35; 'received:google.com': 0.35; 'subject:one': 0.36; 'nov': 0.38; 'pm,': 0.38; 'bad': 0.39; 'read': 0.60; 'subject:more': 0.64; 'more': 0.64; 'book,': 0.68; '5:36': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=GI8TPHs0wf9Oaxwldyx4VjdILMOOaAt5SKt0usn3yOw=; b=OERbqAQ42uNUkTGZdiI61rjYkC4jd4IREazJHFzx1rSYu4fJ7uv+eNGzyz25G8+MAK SGwvTeWUQyXjIGlBglQGVb/k4rehKEyFmIpmijq0TPeQyE3zHQGTkfIAc1Jouwf5IULv bywLgl1g9ZkbO3Ae4lz1fKI37wVU/6ecqU715LROlib3FOe+yC/XfoKCeNN8y7N99uQP Z8KvxE6z1MHZ36o3ep9252QrUCFZ7hwjZIFH1gCvJfi2Ht9cErpdq+r3j+Pnz28gUoL5 6bvq1WL80Y5d7zC7kzXPLOZdCCQXNup1oqgDIptb+0zOGbtLIFZXzcpZ5qzSOU0pPETS Enog== MIME-Version: 1.0 X-Received: by 10.50.171.193 with SMTP id aw1mr13882536igc.2.1416554995644; Thu, 20 Nov 2014 23:29:55 -0800 (PST) In-Reply-To: <87389d6n59.fsf@elektro.pacujo.net> References: <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <87ppch8zvx.fsf@elektro.pacujo.net> <87k32p6ow8.fsf@elektro.pacujo.net> <87389d6n59.fsf@elektro.pacujo.net> Date: Fri, 21 Nov 2014 18:29:55 +1100 Subject: Re: python 2.7 and unicode (one more time) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416554998 news.xs4all.nl 2841 [2001:888:2000:d::a6]:54203 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 1853440259 X-Received-Bytes: 4591 Xref: csiph.com comp.lang.python:81178 On Fri, Nov 21, 2014 at 6:14 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Fri, Nov 21, 2014 at 5:36 PM, Marko Rauhamaa 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