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


Groups > comp.lang.python > #65694

Re: What does """ means in python?

References <72a7dd52-7619-4520-991e-20db7ce55ba3@googlegroups.com> <roy-C8B893.09080908022014@news.panix.com> <ld6237$ju9$1@news.albasani.net>
Date 2014-02-09 08:40 +1100
Subject Re: What does """ means in python?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.6549.1391895636.18130.python-list@python.org> (permalink)

Show all headers | 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