Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3a.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.04; 'defines': 0.09; 'identifier': 0.09; 'python': 0.11; '1.x': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'mark.': 0.16; 'subject:Unicode': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.18; 'example': 0.22; 'header:User-Agent:1': 0.23; 'unicode': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'wondering': 0.29; 'am,': 0.29; 'gives': 0.31; '"",': 0.31; '>>>>': 0.31; 'file': 0.32; "can't": 0.35; 'except': 0.35; 'but': 0.35; 'there': 0.35; 'surely': 0.36; 'message-id:@gmail.com': 0.38; 'others.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'world.': 0.61; 'show': 0.63; 'kind': 0.63; 'different': 0.65; 'dont': 0.67; 'invalid': 0.68; 'dozens': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Fri, 02 May 2014 11:39:42 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Unicode 7 References: <5361d4f9$0$11109$c3e8da3@news.astraweb.com> <82067b83-a6f5-4b16-b012-385535ea5607@googlegroups.com> <53635b34$0$29965$c3e8da3$5496439d@news.astraweb.com> <0bdd2577-2893-4564-9857-fcfc6021dced@googlegroups.com> <536387b8$0$29965$c3e8da3$5496439d@news.astraweb.com> <5e91529c-c03f-44ee-a610-5697fea167b2@googlegroups.com> In-Reply-To: <5e91529c-c03f-44ee-a610-5697fea167b2@googlegroups.com> 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399052391 news.xs4all.nl 2923 [2001:888:2000:d::a6]:38186 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70872 On 05/02/2014 10:50 AM, Rustom Mody wrote: > Python just barfs: > >>>> fine = 1 > File "", line 1 > fine = 1 > ^ > SyntaxError: invalid syntax >>>> > > The point of that example is to show that unicode gives all kind of > "Aaah! Gotcha!!" opportunities that just dont exist in the old world. > Python may have got this one right but there are surely dozens of others. Except that it doesn't. This has nothing to do with unicode handling. It has everything to do with what defines an identifier in Python. This is no different than someone wondering why they can't start an identifier in Python 1.x with a number or punctuation mark.