Need formatting suggestion for long strings

Robert Dailey rcdailey at gmail.com
Fri Sep 5 22:12:25 CEST 2008


On Fri, Sep 5, 2008 at 2:29 PM, Jean-Paul Calderone <exarkun at divmod.com>wrote:

> mystring = (
>   "This is a very long string that "
>   "spans multiple lines and does "
>   "not include line breaks or tabs "
>   "from the source file between "
>   "the strings partitions.")


At first glance it looks like this is making a tuple. I didn't know this was
legal! But, this is definitely what I was looking for (Assuming it works).

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080905/74553fca/attachment.html>


More information about the Python-list mailing list