Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: python 2.7 and unicode (one more time) Date: Fri, 21 Nov 2014 09:14:26 +0200 Organization: A noiseless patient Spider Lines: 17 Message-ID: <87389d6n59.fsf@elektro.pacujo.net> References: <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <87ppch8zvx.fsf@elektro.pacujo.net> <87k32p6ow8.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="1599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ai//D7Y5q9WhIAU24U0MQ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:9QCkrFVrNyvxtX4FdK0HmjPPRqQ= sha1:EixjgaOPmEP9YjAUl4uujMYroWA= Xref: csiph.com comp.lang.python:81177 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. Marko