On 4/12/07, <b class="gmail_sendername">Adam Atlas</b> <<a href="mailto:adam@atlas.st">adam@atlas.st</a>> 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>Meanwhile, on a similar subject, I have a... strange idea. I'm not<br>sure how easy/hard it would be to parse or how necessary it is, but<br>it's just a thought.</blockquote><div><br>[snip] <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So anyway,<br>what I'm proposing is the following:<br><br>x = 'foo<br> 'bar<br> 'baz'<br><br>Any<br>thoughts?</blockquote><div><br>-1 on such new syntax.<br><br>What i usually do is:<br><span style="font-family: courier new,monospace;">
message = ("yada yada\n"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> "more yada yada\n"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> "even more yada.")</span><br><br></div>This works a lot like what you suggest, but with Python's current syntax. If implicit string concatenation were removed, I'd just add a plus sign at the end of each line.
<br></div><br>This is also a possibility:<br><span style="font-family: courier new,monospace;">message = "\n".join([<br> "yada yada",</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> "more yada yada",</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> "even more yada."])<br><br></span>The latter would work even better with the removal of implicit string concatenation, since forgetting a comma would cause a syntax error instead of skipping a newline.
<br><br>- Tal<br>