I would say to split it by the newline!<br><br><div class="gmail_quote">On Nov 20, 2007 10:59 PM, John Machin <<a href="mailto:sjmachin@lexicon.net">sjmachin@lexicon.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Nov 21, 7:15 am, Farshid Lashkari <<a href="mailto:n...@spam.com">n...@spam.com</a>> wrote:<br>> J. Clifford Dyer wrote:<br>> > I think you mean '\n'.join([string1,string2,string3])
<br>><br>> > You actually do want the \ to do its thing in this case.<br>><br>> Yeah, my brain must still be asleep. Thanks for waking it up :)<br><br></div>You're not alone :-)<br><br>>>> a = """
<br>... x<br>... y<br>... z<br>... """<br>>>> a<br>'\nx\ny\nz\n'<br>>>> '\n'.join(['x', 'y', 'z'])<br>'x\ny\nz'<br><div><div></div><div class="Wj3C7c">
>>><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>
<a href="http://search.goldwatches.com/">http://search.goldwatches.com/</a><br><a href="http://www.jewelerslounge.com">http://www.jewelerslounge.com</a>