Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.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: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'explicitly': 0.05; 'string': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'reference:': 0.09; 'subject:question': 0.10; 'python': 0.11; 'concatenate': 0.16; 'janssen': 0.16; 'lexer': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'undefined.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'lines': 0.31; 'probably': 0.32; 'text': 0.33; 'url:python': 0.33; 'there': 0.35; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'should': 0.36; 'so,': 0.37; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:3': 0.61; 'simply': 0.61; 'within': 0.65; 'received:204': 0.75; 'behavior': 0.77; 'article': 0.77; 'received:204.14': 0.84; 'url:reference': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Deily Subject: Re: n00b question on spacing Date: Sat, 22 Jun 2013 12:34:11 -0700 References: <24094189.2779.1371851333304.JavaMail.rgacote@ip-225.appropriatesolutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 204.14.154.191 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371929669 news.xs4all.nl 15866 [2001:888:2000:d::a6]:46305 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48943 In article , Mark Janssen wrote: > > Also remember when entering long lines of text that strings concatenate > > within parenthesis. > > So, > > ("a, b, c" > > "d, e, f" > > "g, h, i") > > > > Is the same as ("a, b, cd, e, fg, h, i") > 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. (A rule probably should be > added to the lexer to make this explicit.) This behavior is explicitly defined in the Python Language Reference: http://docs.python.org/3/reference/lexical_analysis.html#string-literal-c oncatenation -- Ned Deily, nad@acm.org