Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'case.': 0.05; 'allowed.': 0.07; 'defines': 0.07; 'python': 0.09; 'itself,': 0.09; 'subject:()': 0.09; 'to:addr:comp.lang.python': 0.09; 'url:unicode': 0.09; 'cc:addr:python-list': 0.10; 'dec': 0.15; "skip:' 30": 0.15; '*always*': 0.16; 'least,': 0.16; 'posted.': 0.16; 'subject:3.3': 0.16; 'subject:unicode': 0.16; 'unicode.': 0.16; 'uppercase': 0.16; 'worst': 0.16; 'wed,': 0.16; 'wrote:': 0.17; '8bit%:3': 0.17; 'unicode': 0.17; '>>>': 0.18; '(or': 0.18; 'cc:2**0': 0.23; 'example': 0.23; 'this:': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; '(see': 0.27; '----': 0.27; 'correct': 0.28; '>>>>': 0.29; 'case,': 0.29; 'probably': 0.29; "i'm": 0.29; 'implement': 0.32; "skip:' 20": 0.32; 'could': 0.32; 'says': 0.33; 'handle': 0.33; 'agree': 0.34; 'received:google.com': 0.34; 'acceptable': 0.35; 'false': 0.35; 'mapping': 0.35; 'problem,': 0.35; 'doing': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'think': 0.40; 'from:no real name:2**0': 0.60; 'skip:u 10': 0.60; 'link': 0.60; 'subject:, ': 0.61; 'map': 0.61; 'personally': 0.61; 'information': 0.63; 'more': 0.63; 'behavior': 0.64; 'subject.': 0.65; 'wish': 0.70; 'url:jsp': 0.71; 'url:a': 0.72; 'special': 0.73; 'hand': 0.82; '"das': 0.84; 'grosse': 0.84 Newsgroups: comp.lang.python Date: Thu, 20 Dec 2012 11:42:03 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=178.198.163.217; posting-account=ung4FAoAAAC46zhHJ0Nsnuox7M5gDvs_ References: <2adb4a25-8ea3-441f-b8c0-ee6c87e4b19f@googlegroups.com> <890ee58d-e93e-42ac-b17e-59b05c6ecacb@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 178.198.163.217 MIME-Version: 1.0 Subject: Re: Py 3.3, unicode / upper() From: wxjmfauth@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Python 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: , Message-ID: Lines: 112 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356038437 news.xs4all.nl 6863 [2001:888:2000:d::a6]:45072 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35231 Le mercredi 19 d=E9cembre 2012 22:23:15 UTC+1, Ian a =E9crit=A0: > On Wed, Dec 19, 2012 at 1:55 PM, wrote: >=20 > > Yes, it is correct (or can be considered as correct). >=20 > > I do not wish to discuss the typographical problematic >=20 > > of "Das Grosse Eszett". The web is full of pages on the >=20 > > subject. However, I never succeeded to find an "official >=20 > > position" from Unicode. The best information I found seem >=20 > > to indicate (to converge), U+1E9E is now the "supported" >=20 > > uppercase form of U+00DF. (see DIN). >=20 >=20 >=20 > Is this link not official? >=20 >=20 >=20 > http://unicode.org/cldr/utility/character.jsp?a=3D00DF >=20 >=20 >=20 > That defines a full uppercase mapping to SS and a simple uppercase >=20 > mapping to U+00DF itself, not U+1E9E. My understanding of the simple >=20 > mapping is that it is not allowed to map to multiple characters, >=20 > whereas the full mapping is so allowed. >=20 >=20 >=20 > > What is bothering me, is more the implementation. The Unicode >=20 > > documentation says roughly this: if something can not be >=20 > > honoured, there is no harm, but do not implement a workaroud. >=20 > > In that case, I'm not sure Python is doing the best. >=20 >=20 >=20 > But this behavior is per the specification, not a workaround. I think >=20 > the worst thing we could do in this regard would be to start diverging >=20 > from the specification because we think we know better than the >=20 > Unicode Consortium. >=20 >=20 >=20 >=20 >=20 > > If "wrong", this can be considered as programmatically correct >=20 > > or logically acceptable (Py3.2) >=20 > > >=20 > >>>> 'Stra=DFe'.upper().lower().capitalize() =3D=3D 'Stra=DFe' >=20 > > True >=20 > > >=20 > > while this will *always* be problematic (Py3.3) >=20 > > >=20 > >>>> 'Stra=DFe'.upper().lower().capitalize() =3D=3D 'Stra=DFe' >=20 > > False >=20 >=20 >=20 > On the other hand (Py3.2): >=20 >=20 >=20 > >>> 'Stra=DFe'.upper().isupper() >=20 > False >=20 >=20 >=20 > vs. Py3.3: >=20 >=20 >=20 > >>> 'Stra=DFe'.upper().isupper() >=20 > True >=20 >=20 >=20 > There is probably no one clearly correct way to handle the problem, >=20 > but personally this contradiction bothers me more than the example >=20 > that you posted. ---- At least, we agree on the problematic of this very special case. jmf