Re: A desperate lunge for on-topic-ness

Discussion in 'Python' started by Dave Angel, Oct 18, 2012.

  1. Dave Angel

    Dave Angel Guest

    On 10/18/2012 12:58 PM, Chris Kaynor wrote:
    > On Thu, Oct 18, 2012 at 9:47 AM, Dave Angel <> 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
    Dave Angel, Oct 18, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zero Piraeus

    A desperate lunge for on-topic-ness

    Zero Piraeus, Oct 18, 2012, in forum: Python
    Replies:
    24
    Views:
    335
    Krzysztof Voss
    Oct 19, 2012
  2. Chris Angelico

    Re: A desperate lunge for on-topic-ness

    Chris Angelico, Oct 18, 2012, in forum: Python
    Replies:
    0
    Views:
    135
    Chris Angelico
    Oct 18, 2012
  3. Demian Brecht

    Re: A desperate lunge for on-topic-ness

    Demian Brecht, Oct 18, 2012, in forum: Python
    Replies:
    0
    Views:
    180
    Demian Brecht
    Oct 18, 2012
  4. Mark Lawrence

    Re: A desperate lunge for on-topic-ness

    Mark Lawrence, Oct 18, 2012, in forum: Python
    Replies:
    0
    Views:
    128
    Mark Lawrence
    Oct 18, 2012
  5. Jean-Michel Pichavant

    Re: A desperate lunge for on-topic-ness

    Jean-Michel Pichavant, Oct 18, 2012, in forum: Python
    Replies:
    2
    Views:
    154
    Demian Brecht
    Oct 19, 2012
Loading...

Share This Page