<b class="gmail_sendername">Georg Brandl</b> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>

I've already suggested at one time that a dedent() method be added to strings,<br>which would make it more obvious, but what is one import...</blockquote><div><br>I'm not sure this is the way to go. IMO string methods should be generic manipulations on strings, and personally I find indenting/dedenting multi-line strings doesn't fit in. For me, a stdlib function is just fine.
<br><br><br><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;">Ivan Vilata i Balaguer </span>wrote:<br></span><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">

I'd rather make it explicit by using some string prefix a la 'r' or 'u',<br>'i', for instance:</blockquote><div><br>This could be a reasonable solution, but it has some downsides:<br>* It's less readable than a well named function
<br>* It's harder to understand for a newbie - a function/method has a docstring, this would have to be looked up in the docs<br>* It's easy to miss while reading code - one small letter making a big difference<br>
* It paves the road for making more such string prefixes, and then we'd have to memorize all of them... or consult the docs often<br><br>-1 from me.<br></div></div></div>