Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49147

Re: n00b question on spacing

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
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; 'cpython': 0.05; '*is*': 0.09; 'code"': 0.09; 'subject:question': 0.10; 'python': 0.11; 'suggest': 0.14; 'language.': 0.14; '(there': 0.16; 'clarified': 0.16; 'does,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'kern': 0.16; 'lexer': 0.16; 'lexical': 0.16; 'mandate': 0.16; 'notation.': 0.16; 'them.)': 0.16; 'undefined.': 0.16; 'wrote:': 0.18; 'bit': 0.19; "python's": 0.19; 'previously': 0.22; 'necessary.': 0.24; 'of.': 0.24; 'defined': 0.27; 'header :In-Reply-To:1': 0.27; 'correct': 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; 'languages': 0.32; 'quite': 0.32; 'something': 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'should': 0.36; 'sometimes': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; "you're": 0.61; 'places': 0.64; 'analysis': 0.75; '9:19': 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=YDAAILBVAjZKTphGvh9t0d1qNqgbIqMQinYdSqBzCT8=; b=JAjuRlqB9A3xNqT6oaeoMeSQXeOt1KmhSlLrlcdja8pOQL799tESAP8Da7AvFN8xFi I4pBlJsjR4KJUO11p/W4aOXq76slYtPzjWJjWLqNCnagR/IaXCuliraqBs2RYD+zWEn4 67zhut12ps02a4qSqsqb2seOfJZcm4qn3Y4+vZQw/GERTG4rv501UH0Sdy2BVsjfLJJZ iu5RbXtQlqoDl94Nnuh7TC8gKOiqPZjkd48Zn1Yc5xQzsTAIZhc5cXST/XUaiz3QO2a+ +wnHl0QQLeclYoqpml0HA3ht/+pz+LG0SLr7uqZA1yeN1rjGekNXAV8tcS4nC+nOeTL2 ottw==
MIME-Version 1.0
X-Received by 10.220.48.17 with SMTP id p17mr13317047vcf.97.1372160917483; Tue, 25 Jun 2013 04:48:37 -0700 (PDT)
In-Reply-To <kqbub9$n7n$1@ger.gmane.org>
References <CAJ=2b07ETuSuo2+3Xu6vMOJA+q1JwUFTezO3LaYLG8wXd+FLBQ@mail.gmail.com> <24094189.2779.1371851333304.JavaMail.rgacote@ip-225.appropriatesolutions.com> <mailman.3701.1371923002.3114.python-list@python.org> <kqalj4$d58$1@dont-email.me> <CAMjeLr9MwFVtdDy6P3+GAksKXJ3pGSG7g-9f_4tRdAXrNpFHUg@mail.gmail.com> <kqbub9$n7n$1@ger.gmane.org>
Date Tue, 25 Jun 2013 21:48:37 +1000
Subject Re: n00b question on spacing
From Chris Angelico <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3809.1372160925.3114.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372160925 news.xs4all.nl 15970 [2001:888:2000:d::a6]:38911
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49147

Show key headers only | View raw


On Tue, Jun 25, 2013 at 9:19 PM, Robert Kern <robert.kern@gmail.com> 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. (There are other languages that *are*
implementation-defined, meaning that it *is* correct to talk about
features in that way. Python just isn't one of them.) Sometimes a rule
needs to be clarified to mandate something that was previously left up
to the implementation; however, if that's the case, the rule would not
be added to the lexer, but to the documentation.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: n00b question on spacing Mark Janssen <dreamingforward@gmail.com> - 2013-06-22 10:43 -0700
  Re: n00b question on spacing alex23 <wuwei23@gmail.com> - 2013-06-25 09:48 +1000
    Re: n00b question on spacing Mark Janssen <dreamingforward@gmail.com> - 2013-06-24 17:22 -0700
    Re: n00b question on spacing Robert Kern <robert.kern@gmail.com> - 2013-06-25 12:19 +0100
    Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-25 21:48 +1000
    Re: n00b question on spacing Robert Kern <robert.kern@gmail.com> - 2013-06-25 12:59 +0100
    Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-25 22:07 +1000

csiph-web