Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108077

Re: Not x.islower() has different output than x.isupper() in list output...

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Grant Edwards <grant.b.edwards@gmail.com>
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 <mailman.347.1462290169.32212.python-list@python.org> (permalink)
References <572407AE.1070703@icloud.com> <1461979797.3824480.593944273.0B8D8DF3@webmail.messagingengine.com> <57241097.7020801@icloud.com> <mailman.242.1461981344.32212.python-list@python.org> <e1e5bfe4-7998-4cf7-a4f8-53cf5426c7c5@googlegroups.com> <CAPTjJmq4ce8qBTFW5aszP4tZSu8tB5Dc6Y9im4pH1znDGbR0GQ@mail.gmail.com> <mailman.339.1462271120.32212.python-list@python.org> <lf5r3dje63l.fsf@ling.helsinki.fi> <CAPTjJmqt77gQSm11VDMYviZeFq6uTYUJdkPa8toUA2TejS1Lnw@mail.gmail.com> <mailman.341.1462276849.32212.python-list@python.org> <nga79f$gau$1@dont-email.me> <CAPTjJmq0GJ+22m7YJw_v3+ykSrUySRA665PqZKsJ+SCCw9np7Q@mail.gmail.com> <mailman.344.1462281210.32212.python-list@python.org> <nga89p$ku2$1@dont-email.me> <lf5eg9jdwmr.fsf@ling.helsinki.fi> <ngaev1$fv0$1@dont-email.me> <lf560uvduwe.fsf@ling.helsinki.fi> <ngagt8$2qo$1@ger.gmane.org>
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 <python-python-list@m.gmane.org>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <ngagt8$2qo$1@ger.gmane.org>
X-Mailman-Original-References <572407AE.1070703@icloud.com> <1461979797.3824480.593944273.0B8D8DF3@webmail.messagingengine.com> <57241097.7020801@icloud.com> <mailman.242.1461981344.32212.python-list@python.org> <e1e5bfe4-7998-4cf7-a4f8-53cf5426c7c5@googlegroups.com> <CAPTjJmq4ce8qBTFW5aszP4tZSu8tB5Dc6Y9im4pH1znDGbR0GQ@mail.gmail.com> <mailman.339.1462271120.32212.python-list@python.org> <lf5r3dje63l.fsf@ling.helsinki.fi> <CAPTjJmqt77gQSm11VDMYviZeFq6uTYUJdkPa8toUA2TejS1Lnw@mail.gmail.com> <mailman.341.1462276849.32212.python-list@python.org> <nga79f$gau$1@dont-email.me> <CAPTjJmq0GJ+22m7YJw_v3+ykSrUySRA665PqZKsJ+SCCw9np7Q@mail.gmail.com> <mailman.344.1462281210.32212.python-list@python.org> <nga89p$ku2$1@dont-email.me> <lf5eg9jdwmr.fsf@ling.helsinki.fi> <ngaev1$fv0$1@dont-email.me> <lf560uvduwe.fsf@ling.helsinki.fi>
Xref csiph.com comp.lang.python:108077

Show key headers only | View raw


On 2016-05-03, Jussi Piitulainen <jussi.piitulainen@helsinki.fi> 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"!

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Not x.islower() has different output than x.isupper() in list output... Christopher Reimer <christopher_reimer@icloud.com> - 2016-04-29 18:55 -0700
  Re: Not x.islower() has different output than x.isupper() in list   output... Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-30 17:47 +1200
  Re: Not x.islower() has different output than x.isupper() in list output... pavlovevidence@gmail.com - 2016-05-03 03:00 -0700
    Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-03 20:25 +1000
      Re: Not x.islower() has different output than x.isupper() in list output... Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-03 14:25 +0300
        Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-03 22:00 +1000
          Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-03 09:01 -0400
            Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-03 23:13 +1000
              Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-03 09:19 -0400
                Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-03 23:23 +1000
                Re: Not x.islower() has different output than x.isupper() in list output... Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-03 17:49 +0300
                Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-03 11:12 -0400
                Re: Not x.islower() has different output than x.isupper() in list output... Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-03 18:27 +0300
                Re: Not x.islower() has different output than x.isupper() in list output... Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-03 15:42 +0000
                Re: Not x.islower() has different output than x.isupper() in list output... Terry Reedy <tjreedy@udel.edu> - 2016-05-03 12:37 -0400
                Re: Not x.islower() has different output than x.isupper() in list output... Steven D'Aprano <steve@pearwood.info> - 2016-05-04 13:28 +1000
                Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-04 10:09 -0400
                Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-05 00:37 +1000
                Re: Not x.islower() has different output than x.isupper() in list output... Steven D'Aprano <steve@pearwood.info> - 2016-05-05 01:37 +1000
                Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-04 17:05 -0400
          Re: Not x.islower() has different output than x.isupper() in list output... Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-03 17:42 +0300
            Re: Not x.islower() has different output than x.isupper() in list output... Steven D'Aprano <steve@pearwood.info> - 2016-05-04 11:30 +1000
            Re: Not x.islower() has different output than x.isupper() in list output... Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-05-04 20:34 +1200
              Re: Not x.islower() has different output than x.isupper() in list output... Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-05-04 19:06 +1000

csiph-web