[Python-ideas] triple-quoted strings and indendation

Stephen J. Turnbull stephen at xemacs.org
Fri May 13 15:13:19 CEST 2011


Matthias Lehmann writes:
 > > Wild idea: make the unary + operator on strings do
 > > textwrap.dedent() on them.
 > >
 > The disadvantage compared to a string flag is, that this unary operator 
 > has no knowledge of the current indendation level within the code

But then your complaint is against text.dedent, not against Python
syntax.  (That's no reason you can't have 2 complaints, of course.)




More information about the Python-ideas mailing list