Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cpython': 0.05; 'explicitly': 0.05; '(of': 0.07; 'code"': 0.09; 'seemed': 0.09; 'sure,': 0.09; 'subject:question': 0.10; 'python': 0.11; 'suggest': 0.14; 'language.': 0.14; 'does,': 0.16; 'enough.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'kern': 0.16; 'lexer': 0.16; 'lexical': 0.16; 'notation.': 0.16; 'thread,': 0.16; 'undefined.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; "python's": 0.19; '>>>': 0.22; 'documented': 0.24; 'necessary.': 0.24; 'of.': 0.24; "i've": 0.25; 'post': 0.26; '(for': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'robert': 0.30; 'specified': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; '25,': 0.31; 'there.': 0.32; 'probably': 0.32; 'quite': 0.32; 'implemented': 0.33; 'something': 0.35; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'course': 0.61; "you're": 0.61; 'places': 0.64; 'analysis': 0.75; '9:19': 0.84; 'lately,': 0.84; 'moot': 0.84; '2013': 0.98 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:to :content-type; bh=GuRvZTSxl1+uLQNc/sM36nuiY9OFVOH9AJ1UC6Khza0=; b=YpvPT3xB/oUEOD5J4yAnBNFOoYEMdRpDrUylG3E1J0m16B+2ORO5lvQQeRruY41WEG pJvAaNPp8KYlAhDRS+nVuzLDlAhnCyjtjVr2mvplfpw8lmjLQVLGEI4T9XpidS+6Vs8V lX6TEikgSWtU70OUruxWuOFPIlpAmyOrYa7cA+6z3EJGGE1FRQSU3Iw3xz93U3EW5rpg 15vEdjer/GwuBmt2Y3pBzrRLl4ZzNXhygOOPrUlC51H3Ao0PL2Newhyb4rPdGtCDKcoR jCQcU0zp00y7bHv6YQ+AqaFLdF28v19ln3AoAWWXJVAp7qrT6U6AZjEhfaU7MZtopBzp KMEg== MIME-Version: 1.0 X-Received: by 10.52.120.77 with SMTP id la13mr11716102vdb.23.1372162044148; Tue, 25 Jun 2013 05:07:24 -0700 (PDT) In-Reply-To: References: <24094189.2779.1371851333304.JavaMail.rgacote@ip-225.appropriatesolutions.com> Date: Tue, 25 Jun 2013 22:07:24 +1000 Subject: Re: n00b question on spacing From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372162046 news.xs4all.nl 15957 [2001:888:2000:d::a6]:48272 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49150 On Tue, Jun 25, 2013 at 9:59 PM, Robert Kern wrote: > On 2013-06-25 12:48, Chris Angelico wrote: >> >> On Tue, Jun 25, 2013 at 9:19 PM, Robert Kern >> wrote: >>> >>> There is quite a bit of Python's lexical analysis that is specified in >>> places other than the formal notation. That does not mean it is >>> undefined. >>> It is well defined in the lexer code and the documentation. You suggest >>> that >>> a "rule probably should be added to the lexer to make this explicit." >>> That >>> is not necessary. The rule is already there. >> >> >> Be careful; Python is not an implementation-defined language. Python >> has no "lexer code" - CPython does, and is probably what you're >> thinking of. > > > No, that's not what I am thinking of. I said that the rule is defined in > both code and the documentation. Mark did suggest adding the rule to the > lexer (for which he may have been thinking of just CPython, but you can take > that up with him), but of course it is already there. I did not suggest that > its presence in the lexer code (of any or all implementations) is > sufficient, but the point is moot because it is already both explicitly > implemented (several times) and clearly documented in the Python language > reference. Sure, fair enough. I've just been skimming this thread, lately, so please don't take my post as implying that you're wrong-wrong-wrong... it's just something that seemed to want clarifying :) ChrisA