Are line continuations needed?
Graham Breed
usenet at microtonal.co.uk
Thu Apr 8 06:26:42 EDT 2004
> I think that you might find there wasn't any indentation to lose. Read the
> point more carefully and you might see he has a valid concern. Consider
> this (none of the lines are indented):
>
> mystring = """\
> +---------------+
> | '" |
> +---------------+
> """
>
> Without a line continuation there simply isn't any way to write this string
> and still have the box characters line up neatly.
mystring = """
+---------------+
| '" |
+---------------+
"""[1:]
More information about the Python-list
mailing list