Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.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.114 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.77; '*S*': 0.00; 'abuse': 0.07; 'identifier,': 0.16; 'identifiers': 0.16; 'subject:unicode': 0.16; 'symbols': 0.16; 'unicode.': 0.16; ':-)': 0.16; 'wrote:': 0.18; '31,': 0.24; "aren't": 0.24; 'mon,': 0.24; '(or': 0.24; 'header :In-Reply-To:1': 0.27; 'character': 0.29; 'tim': 0.29; 'message- id:@mail.gmail.com': 0.30; 'chase': 0.31; 'though.': 0.31; "we're": 0.32; 'could': 0.34; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'useful': 0.36; 'easily': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'expect': 0.39; 'does': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'ian': 0.60; 'name': 0.63; 'more': 0.64; 'talking': 0.65; 'here': 0.66; 'mar': 0.68; 'alphanumeric': 0.68; 'incorporate': 0.68; '8bit%:96': 0.70; 'legal': 0.71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=2cLCg64rwS+Q11ayCI6/O9C4J/FTKHCHFsAVKg1mSzg=; b=uikrXNEB9U43rnJkV+Dv9siQ2XuvisUGpL12Ku1JSo6WiAEJeavaxWuas7UgBnUr5n 5hqfzNq2ujFJokj6qK1X3kBpZPL7AV2+Tx+CxXFjXXT4DEprAf2t30RY3xigWQVKTcd2 t5xOopiwhbxTzM6qgyvnw8dCeR1E6ZTGPW1GMftY8XreXBGDtkIC5grVEOXSYvqUqb7C EyKv7odA6aoKTHv++8BuZIeCxm1Z+FR7UmeAVhtVltDsI2J4o0goN9EV8ypKcxhDxwZe HuBlSubT42nHopcSCU+p0EwcQkf3VoHye+SctihvVf8sNHlKABL0+FLmeqt4BdUYBySI 3dzg== X-Received: by 10.66.141.144 with SMTP id ro16mr5426120pab.131.1396289484731; Mon, 31 Mar 2014 11:11:24 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140331130257.2c90f07e@bigbox.christie.dr> References: <5331D902.3030902@gmail.com> <53321819$0$29994$c3e8da3$5496439d@news.astraweb.com> <53393BA4.2080305@rece.vub.ac.be> <20140331130257.2c90f07e@bigbox.christie.dr> From: Ian Kelly Date: Mon, 31 Mar 2014 12:10:44 -0600 Subject: Re: unicode as valid naming symbols To: Python Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396289488 news.xs4all.nl 2916 [2001:888:2000:d::a6]:56748 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69440 On Mon, Mar 31, 2014 at 12:02 PM, Tim Chase wrote: > On 2014-03-31 11:40, Ian Kelly wrote: >> There is nothing useful >> you can do with a name that is the U+1F4A9 character that you can't >> do just as easily with alphanumeric identifiers like pile_of_poo (or >> =D0=BA=D1=83=D1=87=D0=B0_=D1=84=D0=B5=D0=BA=D0=B0=D0=BB=D0=B8=D0=B9 if o= ne prefers; that's auto-translated, so don't blame >> me if it's a poor translation). The kinds of symbols that we're >> talking about here aren't part of any writing systems, and so to >> incorporate them in *names* as if they were is an abuse of Unicode. > > It does get more complex though, when you could have things like > > =E9=BB=84=E9=87=91=E5=B1=8E =3D "\U0001f4a9" > > Like you, I don't expect to ever encounter something like this in the > wild, but they are indeed symbols used in a writing system. :-) That's already a legal identifier, though. The constituent ideographs are categorized as "Letter, Other", not symbols.