[Python-ideas] triple-quoted strings and indendation

Stephen J. Turnbull stephen at xemacs.org
Sat May 14 03:50:48 CEST 2011


Matthias Lehmann writes:

 > func(t"""
 >    foo
 >    bar
 >    more
 >    """)

This style is possible without help from the parser, by taking the
last line as a hint for the indent to trim.




More information about the Python-ideas mailing list