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


Groups > comp.lang.python > #49113

Re: n00b question on spacing

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <dreamingforward@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.018
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'string': 0.09; 'etc).': 0.09; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; '24,': 0.16; 'janssen': 0.16; 'undefined.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'defined': 0.27; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:python': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'url:org': 0.36; 'list': 0.37; 'pm,': 0.38; 'recent': 0.39; 'simply': 0.61; 'to:addr:gmail.com': 0.65; 'url:reference': 0.84; 'washington': 0.93; '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 :cc:content-type; bh=OaShaPZyAH1E1ZBy1CsTfg99e5XYel0XH9+YTSLJmq8=; b=jKiKNPEzZCYfAbAxs7/L4DY2M4oxWpju/olzGZP/S+/Q822aUiaebDlhlT6PtxZ/8h 4FeZ5yvkUbZHoo77BwG7C6OsN4Z3v4GyrHerfesJr1kkWrBmTGBCZ8Kx4RRXO+6i2dab Uoga6tV4MT3/JQg3Z6tf5ChixeCTp/q3AheX19Xx8u/vlVlktcmCIQkz803Ag/K6nb14 GkxNjd6g7cZeKBm/fpGVBEVJ3nLs0Qj8hnxZNHcCF8GGnvpBEcRbGTJ58FW9Qe618m3M HUCZ651M7oMLjy6jEppDHOOmc80DI/SsOj38ZAVHUmSKvAQGChHiTJ4ddOLP58PEey5u ofbA==
MIME-Version 1.0
X-Received by 10.180.205.200 with SMTP id li8mr7482049wic.15.1372119741231; Mon, 24 Jun 2013 17:22:21 -0700 (PDT)
In-Reply-To <kqalj4$d58$1@dont-email.me>
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>
Date Mon, 24 Jun 2013 17:22:21 -0700
Subject Re: n00b question on spacing
From Mark Janssen <dreamingforward@gmail.com>
To alex23 <wuwei23@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
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.3789.1372119744.3114.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372119744 news.xs4all.nl 15880 [2001:888:2000:d::a6]:36090
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49113

Show key headers only | View raw


On Mon, Jun 24, 2013 at 4:48 PM, alex23 <wuwei23@gmail.com> wrote:
> On 23/06/2013 3:43 AM, Mark Janssen wrote:
>>
>> There was a recent discussion about this (under "implicit string
>> concatenation").  It seems this is a part of the python language
>> specification that was simply undefined.
>
>
> It's part of the language reference, not an accidental artifact:
> http://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation

When I say "specification", I mean "specified in the formal notation"
(BNF, etc).  "whitespace" is not defined (otherwise there would be a
line in the token list for "linefeed" and "carriagereturn".

-- 
MarkJ
Tacoma, Washington

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