Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.075 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'language.': 0.14; 'cons': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'newlines': 0.16; 'subject:python': 0.16; 'ignore': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'suggested': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'respective': 0.29; 'message-id:@mail.gmail.com': 0.30; 'asked': 0.31; 'actual': 0.34; 'advice': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'files': 0.38; 'how': 0.40; 'ago,': 0.61; "you're": 0.61; 'kind': 0.63; 'approaches': 0.68; 'bothered': 0.68; 'soul': 0.74; 'look.': 0.84; 'to:none': 0.92 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:cc :content-type; bh=HWOI0H5S4zD4pB79tde8PDw6lXocPZWyj2TNADTUSw0=; b=Xtq8mIllR01mfL8956C2niATVQ8/X+fPIb7J0w+yGrSmpe/AFb2uz7HtF7CCwtIFyW VheB2vWDtEXsy6ikZ6I6dUEHflPlIFcWIFcSFadH0ziRQ/XANeV0eylwLEJJpmdELPUm F/zoCA0xzjeyX5xxLE+lSeTvQGBRMa8iOdjha6xKRHslA8rKCxMJxzk9mU0GO3SeHjoO bU/B4hMkiVKaEYcc7fuyTPtwE8RgMZmn7t3LOXzj74xde9oPhSz2f+20wkhpZ0eA03NV /h2AOb2Q7dB1XpSn+sLlKKEfPC/u4fPZK9L3PkbqnVYDc3vmOI5lHjH7HqD582DzbcPn so6A== MIME-Version: 1.0 X-Received: by 10.68.255.101 with SMTP id ap5mr28088837pbd.41.1391895625915; Sat, 08 Feb 2014 13:40:25 -0800 (PST) In-Reply-To: References: <72a7dd52-7619-4520-991e-20db7ce55ba3@googlegroups.com> Date: Sun, 9 Feb 2014 08:40:25 +1100 Subject: Re: What does """ means in python? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391895636 news.xs4all.nl 2968 [2001:888:2000:d::a6]:42787 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65694 On Sun, Feb 9, 2014 at 6:55 AM, Walter Hurry wrote: > When I asked (here) about this a while ago, some kind soul suggested textwrap.dedent. > > Any advice as to the pros and cons of the respective approaches (esp. for SQL)? For SQL? Ignore the extra spaces, it's a free-form language. The only reason to consider dedent() would be if you're worried about how your log files will look. The actual execution of SQL won't be bothered by newlines and spaces/tabs. ChrisA