style question
Scott David Daniels
scott.daniels at acm.org
Mon Jun 26 13:25:18 EDT 2006
Claudio Grondi wrote:
<<<clever stuff to di indentation>>>
> When necessary to skip first line _and_ indentation:
> message = """
> This is line 1
> This is line 2
> This is line 3
> """.replace('\n ', '\n')[1:] # adjust here '\n ' to indentation
Riffing on this idea:
message = """
This is line 1
This is line 2
This is line 3
""".replace("""
""", '\n')[1:]
--Scott David Daniels
scott.daniels at acm.org
More information about the Python-list
mailing list