<br><div class="gmail_quote">On Tue, Sep 15, 2009 at 10:31 PM, Ulrich Eckhardt <span dir="ltr"><<a href="mailto:eckhardt@satorlaser.com">eckhardt@satorlaser.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

"'abc'.split('')" gives me a "ValueError: empty separator".<br>
However, "''.join(['a', 'b', 'c'])" gives me "'abc'".<br>
<br>
Why this asymmetry? I was under the impression that the two would be<br>
complementary.<br></blockquote><div><br>I'm not sure about asymmetry, but how would you implement a split method with an empty delimiter to begin with? It doesn't make much sense anyway.<br><br>If you feel strongly to make it do what you want it to do, it might be a good idea to submit it to Python-ideas mailing list, or such.<br>
<br>Otherwise, it doesn't hurt to iterate over the string and make use of them, right? ;)<br><br>Cheers,<br>Xav <br></div></div>