Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'true,': 0.04; 'memory.': 0.05; 'ascii': 0.07; 'bytes.': 0.07; 'currency': 0.07; 'subject:How': 0.09; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'regression': 0.09; 'subject:()': 0.09; 'subject:string': 0.09; 'subject:using': 0.09; '[*]': 0.16; 'grasp': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'subject:unicode': 0.16; 'subject:variable': 0.16; 'ucs-4': 0.16; '\xe9crit': 0.16; 'string': 0.17; 'wrote:': 0.17; 'supposed': 0.21; 'recognize': 0.22; 'non': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; "d'aprano": 0.29; 'steven': 0.29; 'character': 0.29; 'words': 0.29; "i'm": 0.29; '(including': 0.30; '(and': 0.32; 'from:addr:yahoo.co.uk': 0.32; 'could': 0.32; 'symbol': 0.33; 'zero': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'point.': 0.33; 'compared': 0.35; 'there': 0.35; 'received:org': 0.36; 'explain': 0.36; 'tool': 0.36; 'but': 0.36; 'be.': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; "you've": 0.61; 'real': 0.61; 'world': 0.63; 'email addr:gmail.com': 0.63; 'charset:windows-1252': 0.65; 'everybody': 0.69; 'about?': 0.84; 'samedi': 0.84; 'subject:value': 0.84; 'song.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: How do I display unicode value stored in a string variable using ord() Date: Sat, 18 Aug 2012 16:25:47 +0100 References: <308df2af-abe7-4043-b199-0a39f440e0ab@googlegroups.com> <502f8a2a$0$29978$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-78-146-1-115.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-Antivirus: avast! (VPS 120818-0, 18/08/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345303500 news.xs4all.nl 6953 [2001:888:2000:d::a6]:53699 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27299 On 18/08/2012 16:07, wxjmfauth@gmail.com wrote: > Le samedi 18 août 2012 14:27:23 UTC+2, Steven D'Aprano a écrit : >> [...] >> The problem with UCS-4 is that every character requires four bytes. >> [...] > > I'm aware of this (and all the blah blah blah you are > explaining). This always the same song. Memory. > > Let me ask. Is Python an 'american" product for us-users > or is it a tool for everybody [*]? > Is there any reason why non ascii users are somehow penalized > compared to ascii users? > > This flexible string representation is a regression (ascii users > or not). > > I recognize in practice the real impact is for many users > closed to zero (including me) but I have shown (I think) that > this flexible representation is, by design, not as optimal > as it is supposed to be. This is in my mind the relevant point. > > [*] This not even true, if we consider the €uro currency > symbol used all around the world (banking, accounting > applications). > > jmf > Sorry but you've got me completely baffled. Could you please explain in words of one syllable or less so I can attempt to grasp what the hell you're on about? -- Cheers. Mark Lawrence.