Gisle Vanem wrote:
> Regrading handy uses of ''', you learned me one trick when using Pythonÿ
> code in a Windows .bat file:
>
> rem = '''
> @echo off
> echo This is batch
> \python32\python %0
> echo All done
> exit /b
> rem '''
> import sys
> print("This is Python")
> for i,p in enum
Gisle V.
"Computers are useless. They can only give answers" --Pablo Picasso
Chris Angelico wrote:
> 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
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 on
quot;""SELECT name, phone_number
>> FROM coworkers
>> WHERE name=%s
>> AND clue > %s
>> LIMIT 5""",
>>(name, clue_threshold))
>>
>> What do
FROM coworkers
> WHERE name=%s
> AND clue > %s
> LIMIT 5""",
>(name, clue_threshold))
>
> What does """ means in python?
This is what's known as a "
LIMIT 5""",
(name, clue_threshold))
What does """ means in python?
--
https://mail.python.org/mailman/listinfo/python-list