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


Groups > comp.lang.python > #65694

Re: What does """ means in python?

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 <rosuav@gmail.com>
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 <ld6237$ju9$1@news.albasani.net>
References <72a7dd52-7619-4520-991e-20db7ce55ba3@googlegroups.com> <roy-C8B893.09080908022014@news.panix.com> <ld6237$ju9$1@news.albasani.net>
Date Sun, 9 Feb 2014 08:40:25 +1100
Subject Re: What does """ means in python?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.6549.1391895636.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sun, Feb 9, 2014 at 6:55 AM, Walter Hurry <walterhurry@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What does """ means in python? Sam <lightaiyee@gmail.com> - 2014-02-08 06:02 -0800
  Re: What does """ means in python? Roy Smith <roy@panix.com> - 2014-02-08 09:08 -0500
    Re: What does """ means in python? Walter Hurry <walterhurry@gmail.com> - 2014-02-08 19:55 +0000
      Re: What does """ means in python? Chris Angelico <rosuav@gmail.com> - 2014-02-09 08:40 +1100
      Vedr: What does """ means in python? Gisle Vanem <gvanem@yahoo.no> - 2014-02-09 05:49 +0000
        Re: Vedr: What does """ means in python? Duncan Booth <duncan.booth@invalid.invalid> - 2014-02-10 10:50 +0000

csiph-web