A desperate lunge for on-topic-ness

Dave Angel d at davea.name
Thu Oct 18 13:09:43 EDT 2012


On 10/18/2012 12:58 PM, Chris Kaynor wrote:
> On Thu, Oct 18, 2012 at 9:47 AM, Dave Angel <d at davea.name> wrote:
>
>> <SNIP>
>> But both C++ and Python have automatic concatenation of adjacent
>> strings.  So you can just start and end each line with a quote, and
>> leave off the backslash.
>>
> That will work in C++ as the statements won't terminate on new-line (only
> on semi-colon), however in Python that won't work as the statement
> will terminate at the end of the line. You can get around this by wrapping
> the multiple strings inside of parentheses.
>
>

You're right of course.  As it happens, i tested my "remembery" with a
function call (print, in Python 3) , so I already had the parens.

-- 

DaveA




More information about the Python-list mailing list