Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'say,': 0.05; 'ascii': 0.09; 'classes.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '"python': 0.16; 'categories,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hypothetical': 0.16; 'identifiers': 0.16; 'included,': 0.16; 'introduces': 0.16; 'listed,': 0.16; 'mine.': 0.16; 'need:': 0.16; 'non-ascii': 0.16; 'right:': 0.16; 'subject:unicode': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '3.0': 0.19; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'unicode': 0.24; 'cc:2**0': 0.24; 'defined': 0.27; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'character': 0.29; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'that.': 0.31; 'class': 0.32; 'checked': 0.32; "we're": 0.32; 'url:python': 0.33; 'maybe': 0.34; 'case,': 0.35; 'definition': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'should': 0.36; 'turn': 0.37; 'list': 0.37; 'though,': 0.39; 'url:3': 0.61; 'talking': 0.65; 'it!': 0.67; 'batchelder': 0.84; 'url:reference': 0.84; 'to:none': 0.92 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:cc :content-type; bh=WapWLTnsnRDlnCkohgS8hjs8zaRjNX4HaS3i7ivORYI=; b=u3kh45PIVjDMNbI7XdcEFF9JPKdEjvPz8eSgQDW+iZMCBEPSdRy+PJvfhpRXXPZR3C 3CVrFrJxf5XSBW1ZRwDaExL5xncxvFbVMuDVidjVJIm5UlGq9JgMvJ94ow38aBmklWYA zJbRjdTb7OeSiVbCl4HYA3jhWhdCrhvXbQhIaE/WUupwup5ioKM7h9KLJmpAzeIBOMGz xjHBUaxNhQEgAxJ+5QYA0Wko4MX8FuXDoJsPkleScJBuAAz1qLil0tfrRBz+o911XZXW /6yWFlVaSqYHYgRyASp+wiDR6ie8Q8Sz9x7zloJfAElJfbuYhoArnyCSCesXuaNzKMAi k6sg== MIME-Version: 1.0 X-Received: by 10.68.200.74 with SMTP id jq10mr1584346pbc.169.1396359855608; Tue, 01 Apr 2014 06:44:15 -0700 (PDT) In-Reply-To: References: <5331D902.3030902@gmail.com> <53321819$0$29994$c3e8da3$5496439d@news.astraweb.com> <53393BA4.2080305@rece.vub.ac.be> <5339C281.7080300@rece.vub.ac.be> <533A768F.5080102@rece.vub.ac.be> <533A96E9.1030107@rece.vub.ac.be> <533AAA13.4010309@rece.vub.ac.be> Date: Wed, 2 Apr 2014 00:44:15 +1100 Subject: Re: unicode as valid naming symbols From: Chris Angelico Cc: "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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396359858 news.xs4all.nl 2874 [2001:888:2000:d::a6]:33110 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69515 On Wed, Apr 2, 2014 at 12:33 AM, Ned Batchelder wrote: > Maybe I'm misunderstanding the discussion... It seems like we're talking > about a hypothetical definition of identifiers based on Unicode character > categories, but there's no need: Python 3 has defined precisely that. From > the docs > (https://docs.python.org/3/reference/lexical_analysis.html#identifiers): > "Python 3.0 introduces **additional characters** from outside the ASCII range" - emphasis mine. Python currently has - at least, per that documentation - a hybrid system with ASCII characters defined in the classic way, and non-ASCII characters defined by their Unicode character classes. I'm talking about a system that's _purely_ defined by Unicode character classes. It may turn out that the class list exactly compasses the ASCII characters listed, though, in which case you'd be right: it's not hypothetical. In any case, Pc is included, which I should have checked beforehand. So that part is, as you say, not hypothetical. Go for it! Use 'em. ChrisA