Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.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.059 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'strings.': 0.07; 'python': 0.09; 'cc:addr:python-list': 0.10; 'adjacent': 0.16; 'oct': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'terminate': 0.22; 'cc:2**0': 0.23; 'statement': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'leave': 0.26; 'am,': 0.27; 'c++': 0.27; 'chris': 0.28; 'statements': 0.29; 'function': 0.30; 'pm,': 0.35; "won't": 0.35; 'but': 0.36; 'subject:: ': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'subject:-': 0.40; 'end': 0.40; 'course.': 0.62; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'quote,': 0.84; 'received:74.208.4.194': 0.84; 'angel': 0.93 Date: Thu, 18 Oct 2012 13:09:43 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Chris Kaynor Subject: Re: A desperate lunge for on-topic-ness References: <50802B5B.6040902@cs.wisc.edu> <508032B4.5040303@davea.name> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:/WD/KFufV006VtImC5MQi4j58oueg9nGRyyAjmnXeoy PYymu0X8jTvW/ZxIsrpV+zfLRqIjRF9e79S7qu5yPr8SeU1jpK 2EeQK85oR8Fd2XU+dNGeRvMmY0Tyu8wVits9zh9CEmVN2bDr4A lHnJ035rLHiwz/Mj5TEJnk6MppzK1peEW6NAqf6hNhzNC67kb3 wfRAW/4G5nriDJPFlbFJ92bmJMrPG3+bJ1MjlZJH4tauKT/Pi4 2wtnP5fCjfgbo+DEIm5QeT6n9Uig1LmF+FF2FYqvqWL4zI11OQ V57jPN89krtzBPyhczWd2NPBD5oUqrMGh8tfpjVZLQqmMIJdQ= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: d@davea.name 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350580204 news.xs4all.nl 6973 [2001:888:2000:d::a6]:38709 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31666 On 10/18/2012 12:58 PM, Chris Kaynor wrote: > On Thu, Oct 18, 2012 at 9:47 AM, Dave Angel wrote: > >> >> But both C++ and Python have automatic concatenation of adjacent >> strings. So you can just start and end each line with a quote, and >> leave off the backslash. >> > That will work in C++ as the statements won't terminate on new-line (only > on semi-colon), however in Python that won't work as the statement > will terminate at the end of the line. You can get around this by wrapping > the multiple strings inside of parentheses. > > You're right of course. As it happens, i tested my "remembery" with a function call (print, in Python 3) , so I already had the parens. -- DaveA