I would never use a quadruple quote for this if it were ever implemented.  A better precedent would be a letter prefix to the quotes similar to what we do for raw strings and bytes constants today.  m""" perhaps.<div>

<br></div><div>I'm -0.5 on this.</div><div><br></div><div>I don't think it is a necessary feature thanks to the textwrap.dedent.  But the reason I'm not -1 is that using dedent incurs runtime cost to process the larger string constant to generate the desired one.  The best way around this is to declare your large string constants at the module level where you don't need to worry about dedent at all.</div>

<div><br></div><div>-gps<br><div><div><div><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 6:10 PM, Stephen J. Turnbull <span dir="ltr"><<a href="mailto:stephen@xemacs.org">stephen@xemacs.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Daniel da Silva writes:<br>
<br>
 > To me, this is rather ugly because it messes up the indentation of<br>
 > some_func(). Suppose we could have a multiline string, that when started on<br>
 > a line indented four spaces, ignores the first four spaces on each line of<br>
 > the literal when creating the actual string?<br>
<br>
</div>We do.<br>
<br>
from textwrap import dedent<br>
<div class="im">def some_func():<br>
    x, y = process_something()<br>
<br>
</div>    val = dedent("""\<br>
<div class="im">    <xml><br>
      <myThing><br>
        <val>%s</val><br>
        <otherVal>%s</otherVal><br>
      </myThing><br>
    </xml><br>
    """) % (x, y)<br>
<br>
    return val<br>
<br>
</div>I don't think the function call is ugly enough to fix with syntax.<br>
<div><div></div><div class="h5">_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br></div></div></div></div>