On 6/13/2011 5:51 PM, darnold wrote:
print "this" \
     " is" \
     " a" \
     " test" \
this is a test

>>> print('this'
      ' is'
      ' a'
      ' test')
this is a test

Python ignores \n within parentheses, brackets, and braces, so no fragile trailing backslash needed. ('Fragile', because invisible space or tab after '\' is an error.)

--
Terry Jan Reedy

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

Reply via email to