Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1a.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; 'python.': 0.02; 'received:134': 0.05; '(using': 0.07; 'identifier': 0.09; 'operator,': 0.09; 'def': 0.12; '"in"': 0.16; '"is"': 0.16; 'backward': 0.16; 'identifiers.': 0.16; 'keyword.': 0.16; 'operator.': 0.16; 'prohibit': 0.16; 'subject:unicode': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'possible,': 0.19; 'written': 0.21; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'mathematical': 0.24; 'unicode': 0.24; 'initial': 0.24; 'this:': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'generally': 0.29; "doesn't": 0.30; 'operators': 0.31; 'plain': 0.33; 'could': 0.34; 'acceptable': 0.36; 'keyword': 0.36; 'changing': 0.37; 'convention': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'release': 0.40; 'even': 0.60; 'ian': 0.60; 'course': 0.61; 'such': 0.63; 'become': 0.64; 'love': 0.65; 'mar': 0.68; '26,': 0.68; 'introduce': 0.78; 'pardon': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAIDwM1OGuA9G/2dsb2JhbABZhyK/VYEygxkBAQEEIw8BRREJAhgCAgUWCwICCQMCAQIBRRMGAgKHdZF5nBeba4ZxF4EpjVEWglmBSQEDmE2GNot+gy8 Date: Thu, 27 Mar 2014 10:36:02 +0100 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.3.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> <533241C0.8020109@mrabarnett.plus.com> <53329549.1000208@rece.vub.ac.be> In-Reply-To: Content-Type: text/plain; charset=UTF-8 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395912965 news.xs4all.nl 2888 [2001:888:2000:d::a6]:57913 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69177 On 26-03-14 17:37, Ian Kelly wrote: > On Wed, Mar 26, 2014 at 2:52 AM, Antoon Pardon > wrote: >> Of course we don't have to follow mathematical convention with python. However allowing any >> unicode symbol as an identifier doesn't prohibit from using √ as an operator. We do have >> "in" and "is" as operators now, even if they would otherwise be acceptable identifiers. >> So I wonder, would you consider to introduce log as an operator. 2 log x seems an interesting >> operation for a programmer. > If it's going to become an operator, then it has to be a keyword. > Changing a token that is currently allowed to be an identifier into a > keyword is generally avoided as much as possible, because it breaks > backward compatibility. "in" and "is" have both been keywords for a > very long time, perhaps since the initial release of Python. I know, for such a reason I would love it if keywords would have been written like this: 𝗱𝗲𝗳 (using mathematical bold) instead of just like this: def (using plain latin letters). It would mean among other things we could just write operator.not instead of having to write operator.not_ -- Antoon Pardon