Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'operator': 0.03; 'mrab': 0.05; 'much!': 0.05; 'root': 0.05; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'pep': 0.09; '~ethan~': 0.09; 'identifier.': 0.16; 'identifiers': 0.16; 'received:gateway13.websitewelcome.com': 0.16; 'subject:unicode': 0.16; 'underscore.': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'number)': 0.24; "shouldn't": 0.24; 'unicode': 0.24; 'header :In-Reply-To:1': 0.27; '(this': 0.29; 'explained': 0.31; 'names.': 0.31; 'there,': 0.34; 'could': 0.34; 'no,': 0.35; 'doing': 0.36; 'thanks': 0.36; "i'll": 0.36; 'should': 0.36; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'letters': 0.60; 'extended': 0.61; 'numbers': 0.61; 'received:173': 0.61; 'name': 0.63; '(that': 0.65; 'chinese': 0.74; 'square': 0.74; 'characters,': 0.84 Date: Tue, 25 Mar 2014 15:47:47 -0700 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: unicode as valid naming symbols References: <5331D902.3030902@gmail.com> In-Reply-To: <5331D902.3030902@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3304.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source-IP: 173.12.184.233 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.233]) [173.12.184.233]:57133 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 2 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20= 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: 1395790617 news.xs4all.nl 2954 [2001:888:2000:d::a6]:43722 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69079 On 03/25/2014 12:29 PM, Mark H Harris wrote: > On 3/25/14 2:24 PM, MRAB wrote: >> It's explained in PEP 3131. >> >> Basically, a name should to start with a letter (this has been extended >> to include Chinese characters, etc) or an underscore. >> >> λ is a classified as Lowercase_Letter. >> >> √ is classified as Math_Symbol. > > Thanks much! I'll note that for improvements. Any unicode symbol (that is not a number) should be allowed as an > identifier. No, it shouldn't. Doing so would mean we could not use √ as the square root operator in the future. Identifiers are made up of letters, numbers, and the underscore. Considering all the unicode letters and unicode numbers out there, you shouldn't be lacking for names. -- ~Ethan~