Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'subject: -- ': 0.07; 'len(x)': 0.09; '1:08': 0.16; 'expect,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'subject:Unicode': 0.16; 'subject:handling': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'certainly': 0.24; 'unicode': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'that.': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'expect': 0.39; 'to:addr:python.org': 0.39; 'skip:x 10': 0.40; 'skip:u 10': 0.60; '30,': 0.65; 'smith': 0.68; '2013': 0.98 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:to :content-type; bh=sCaEjurorcD0SX60eOLiz67pB+Nx+dJN6+Zs9APVb0g=; b=gAu4bMkJfUxjbdIbHC7994dkTNrUv2Wy6KBo6hB/ifo4ljY/hfYbE5mO2xPMtBUalZ zDmyjgNa6GGRcnXclB4XqD6aSab1RovY3oteXxJ9jedb3wiHTFyJi9KYVoYxtfkmwoMD z1cHDPz8N8Rzrjbkzmx2wuih6KRzjj27irf8TPvLsfqRXEy1k/YZ2j537o+NI0gUwQpM y4I5LXT82LkV12JctEANBSzld+IF9I4FfHMBqbBPIXuGMfy/LgTEszKHhQoWQG+QK+6v QphYQiQtX65nppifmn2E03tNt8GNu8E/cIpQqFGCWS28NXU+V1ZERpFA7G9y+96acDse SHIA== MIME-Version: 1.0 X-Received: by 10.68.110.132 with SMTP id ia4mr12311905pbb.99.1385777554241; Fri, 29 Nov 2013 18:12:34 -0800 (PST) In-Reply-To: References: <529934dc$0$29993$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 30 Nov 2013 13:12:34 +1100 Subject: Re: Python Unicode handling wins again -- mostly From: Chris Angelico To: 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: 1385777557 news.xs4all.nl 15904 [2001:888:2000:d::a6]:53335 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60791 On Sat, Nov 30, 2013 at 1:08 PM, Roy Smith wrote: > I would certainly expect, x.lower() == x.upper().lower(), to be True for > all values of x over the set of valid unicode codepoints. Having > u"\uFB04".upper() ==> "FFL" breaks that. I would also expect len(x) == > len(x.upper()) to be True. That's a nice theory, but the Unicode consortium disagrees with you on both points. ChrisA