Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Not x.islower() has different output than x.isupper() in list output... Date: Tue, 3 May 2016 15:42:32 +0000 (UTC) Lines: 28 Message-ID: References: <572407AE.1070703@icloud.com> <1461979797.3824480.593944273.0B8D8DF3@webmail.messagingengine.com> <57241097.7020801@icloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de /0opM0/UqPXEdlTQlqbQ4gj9Ch6BGWFdqwfSRyLN+/4g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'falls': 0.09; 'non-ascii': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:qwest.net': 0.09; 'subject: \n ': 0.15; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:Not': 0.16; 'wrote:': 0.16; 'lunch': 0.22; 'this:': 0.23; 'header:User-Agent:1': 0.26; 'subject:list': 0.26; 'header:X -Complaints-To:1': 0.26; 'looks': 0.29; "i'm": 0.30; 'operations': 0.31; 'probably': 0.31; 'file': 0.34; 'skip:- 50': 0.35; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'means': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'back': 0.62; 'different': 0.63; 'soon': 0.65; '100%': 0.72; 'xerox': 0.84; 'edwards': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net User-Agent: slrn/1.0.2 (Linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <572407AE.1070703@icloud.com> <1461979797.3824480.593944273.0B8D8DF3@webmail.messagingengine.com> <57241097.7020801@icloud.com> Xref: csiph.com comp.lang.python:108077 On 2016-05-03, Jussi Piitulainen wrote: >> Does that mean: >> >> lower(Å) != å ? >> >> and >> >> upper(å) != Å ? > > It means "\N{ANGSTROM SIGN}" != "Å", yet both lower to "å", which then > uppers back to "Å" (U+00c5). > > The Ångström sign (U+212b) looks like this: Å. Indistinguishable from Å > in the font that I'm seeing - for all I know, it's the same glyph. Interesting. FWIW, Å and Å definitely look different with the terminal and font I'm using (urxvt with -misc-fixed-medium-r-normal-*-18-120-*-*-*-90-iso10646-*) Expecting upper/lower operations to be 100% invertible is probably a ASCII-centric mindset that will falls over as soon as you start dealing with non-ASCII encodings. -- Grant Edwards grant.b.edwards Yow! Xerox your lunch at and file it under "sex gmail.com offenders"!