3 ms·
I use it, personally. The other two options I find too aesthetically displeasing: not indenting the string looks bad when it's within an indented block of code,
by housecarpenter 5y ago
I use it, personally. The other two options I find too aesthetically displeasing: not indenting the string looks bad when it's within an indented block of code, and using join and putting the strings in a list is just too much boilerplate. I will use """ if I don't care about the extra space put at the start of each line by the indentation.
- Spivak 5y agoI think you want textwrap.dedent https://docs.python.org/3/library/textwrap.html#textwrap.dedent https://docs.python.org/3/library/textwrap.html#textwrap.ded... or inspect.cleandoc. https://docs.python.org/3.8/library/inspect.html#inspect.cleandoc https://docs.python.org/3.8/library/inspect.html#inspect.cle...
- deleted 5y ago[deleted]