I sometimes use the implicit literal string concatenation:

def SomeFunction():
   if SomeCondition:
      MyString = 'The quick brown fox ' \
                 'jumped over the ' \
                 'lazy dog'
      print MyString

SomeFunction()
The quick brown fox jumped over the lazy dog


It looks pretty good, I think.  One could use triple quotes too, if the
string
contains quotes.

-- George

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to