Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'string': 0.09; 'subject:Why': 0.09; 'compilation,': 0.16; 'concatenated': 0.16; 'expressions,': 0.16; 'literals': 0.16; 'subject: \n ': 0.16; 'subject:comment': 0.16; 'subject:quoted': 0.16; 'subject:simple': 0.16; 'subject:triple': 0.16; 'token,': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'later': 0.20; 'thanks.': 0.20; 'looks': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'though.': 0.31; "we're": 0.32; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'two': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'subject:. ': 0.67; 'mar': 0.68; '26,': 0.68; '2015': 0.84; '5:15': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=1nnwTEGf4y1XhI0G/xv4Hv5XgKTWGzfjLdX5i/yfmbg=; b=RYRwqD3ov01tfIqnghwPGi0see4qETwfG0/w3dtDjwh6/arWKMLeZmaxbBIqbSNaBw fl/y3KBvHgEMAxpr9MZnMRoWbRhQ0dWtW2pJ1WaNkAwvm/z70kSiWm3n6PYujHg1yvHB 7MnzBweEeI/DvqcYfV/QadUR2MTWDqFqrBgGDX20WPREYBEq/DuwGJEFN9/2ay8geRxS YBFK8tn5JVY0EDkYQxZIwnjiNz2s8pIHQZkc72hv+h58xuzKO/EWqFzkL57osTc82RoL ocCfgdccaULck/x5Y/3oBLS3ZqQugKRi6tXU63h0x8PpO/6GODuto+Qtg4uzqjscGK+J k9rw== X-Received: by 10.68.65.100 with SMTP id w4mr7044932pbs.95.1427420374184; Thu, 26 Mar 2015 18:39:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55149305$0$13009$c3e8da3$5496439d@news.astraweb.com> References: <3533816.ZYnZ2OzjCs@PointedEars.de> <3971951.908YQu3oQO@PointedEars.de> <1504323.jUKfeKbQsP@PointedEars.de> <2362875.FIK8ImHTJA@PointedEars.de> <1582467.9xuzSGXesM@PointedEars.de> <55149305$0$13009$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Thu, 26 Mar 2015 19:38:53 -0600 Subject: Re: A simple single line, triple-quoted comment is giving syntax error. Why? To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1427420804 news.xs4all.nl 2875 [2001:888:2000:d::a6]:43034 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3944 X-Received-Body-CRC: 135772355 Xref: csiph.com comp.lang.python:88118 On Thu, Mar 26, 2015 at 5:15 PM, Steven D'Aprano wrote: > Looks to me that the two string literals each get their own token, and are > concatenated at a later stage of compilation, not during parsing. Thanks. The dispute was about expressions, though. I think we're all in agreement that there are two tokens.