Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'encoded': 0.07; 'string': 0.09; 'pep': 0.09; 'subject:into': 0.09; 'subject:string': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'memory': 0.22; 'outlook': 0.22; 'cc:addr:python.org': 0.22; 'interpret': 0.24; 'of.': 0.24; 'mon,': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'world,': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'statement': 0.30; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'sep': 0.31; 'says': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'consist': 0.36; 'subject:?': 0.36; 'should': 0.36; 'how': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'our': 0.64; '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=q81CNekGc4k4yA4KKrDUXsdDKhqeY6K47uNo5DRTTH4=; b=MWuIAWtMWT4PhxLJ4m7OaJykmbWgZl18EVFAXkNrGOmpsxi+LWLLrLd5MIhrDIfPS6 yiFRPwbtlepu53fFFW6PyKllAlsJps0T2myGABsA7YQRzAT733btMyVhdO/FUUgdDbaf gLwCyAcy5krlQhmhHrpm1bX+ND/OD3d/MVQfsWy0/d985ZlvzT9ALulpz3lCCrCjil/C KjLttpHg8tV3t1J3Xew9MtUR6MTQUq3RHIZ0MUrTG0H/hCTZDrwQbvFjMEohR34T6wgn ke+y5ysIHP4aPbVzeg5/Cepb9jliAjEfyOxfUvgTIK/ehKQ6J3tMFwxeBSB8NNXxzN7K 02+w== MIME-Version: 1.0 X-Received: by 10.42.172.195 with SMTP id o3mr31290icz.76.1410135269962; Sun, 07 Sep 2014 17:14:29 -0700 (PDT) In-Reply-To: References: <1amjdb-p3n.ln1@chris.zbmc.eu> <1k9odb-1qs.ln1@chris.zbmc.eu> <540aa002$0$29968$c3e8da3$5496439d@news.astraweb.com> <540b504a$0$29974$c3e8da3$5496439d@news.astraweb.com> <540bb91c$0$29969$c3e8da3$5496439d@news.astraweb.com> <540c8fc4$0$29973$c3e8da3$5496439d@news.astraweb.com> <8b80fe39-4aea-4a17-a1a6-a44f0b42fb7b@googlegroups.com> <540c9f19$0$29999$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 8 Sep 2014 10:14:29 +1000 Subject: Re: How to turn a string into a list of integers? 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1410135272 news.xs4all.nl 2921 [2001:888:2000:d::a6]:57355 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77691 On Mon, Sep 8, 2014 at 4:34 AM, Rustom Mody 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