What does """ means in python?
Chris Angelico
rosuav at gmail.com
Sat Feb 8 16:40:25 EST 2014
On Sun, Feb 9, 2014 at 6:55 AM, Walter Hurry <walterhurry at 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
More information about the Python-list
mailing list