Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'operator': 0.03; 'mrab': 0.05; 'much!': 0.05; 'root': 0.05; 'operator,': 0.09; 'pep': 0.09; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'identifier.': 0.16; 'identifiers': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:192.168.1.4': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'subject:unicode': 0.16; 'underscore.': 0.16; 'wrote:': 0.18; '(the': 0.22; '>>>': 0.22; '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; 'received:84': 0.35; 'doing': 0.36; 'thanks': 0.36; "i'll": 0.36; 'should': 0.36; 'e.g.': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'letters': 0.60; 'extended': 0.61; 'numbers': 0.61; 'name': 0.63; '(that': 0.65; 'chinese': 0.74; 'square': 0.74; 'characters,': 0.84; 'ethan': 0.84; 'furman': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=JLW1sq6b c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=tLkI8qN_j18A:10 a=0BnVj236Uu0A:10 a=ihvODaAuJD4A:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=Al0zc3Xtcl2MKQ6l8sMA:9 a=QEXdDO2ut3YA:10 X-AUTH: mrabarnett:2500 Date: Wed, 26 Mar 2014 02:56:00 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: unicode as valid naming symbols References: <5331D902.3030902@gmail.com> <53320793.8070501@stoneleaf.us> In-Reply-To: <53320793.8070501@stoneleaf.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395802562 news.xs4all.nl 2831 [2001:888:2000:d::a6]:38906 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69097 On 2014-03-25 22:47, Ethan Furman wrote: > 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. > Or as a root operator, e.g. 3 √ x (the cube root of x). > 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. >