<br><div>Sorry for wasting your brain power -</div><div>I just read through some of my code and realised how stupid an idea it really was... I haven't even got the excuse of being remotely new to the language (or programming in general come to think of it)</div>
<div><br></div><div>lesson(self): dont_post_at_end_of_day_without(thinking_a_lot_first)</div><div><br></div><div>sorrly-mistaken-and-embarrassed</div><div>Matt</div><div><br><div class="gmail_quote">2008/12/11 Bruce Leban <span dir="ltr"><<a href="mailto:bruce@leapyear.org">bruce@leapyear.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I think splitting an empty string is more like dividing zero in half. No one expects that to raise a value exception.<br>
<font color="#888888"><br>--- Bruce</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Thu, Dec 11, 2008 at 12:14 PM, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</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"><div>On Thu, Dec 11, 2008 at 12:11 PM, Matthew Russell<br>
<<a href="mailto:matt.horizon5@gmail.com" target="_blank">matt.horizon5@gmail.com</a>> wrote:<br>
> It seems to me like spliting an empty string is something that makes little<br>
> sense to do,<br>
> similar to dividing by zero in terms of an analogy.<br>
<br>
</div>I guess you have never had the need. Let me assure you that you are<br>
mistaken. :-)<br>
<div><br>
> How about str.split, partition and friends just raise ValueError exception<br>
> when the value is the empty string?<br>
<br>
</div>Absolutely not.<br>
<div><br>
> Regards,<br>
> Matt<br>
><br>
> 2008/12/11 Terry Reedy <<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a>><br>
>><br>
>> Guido van Rossum wrote:<br>
>>><br>
>>> On Thu, Dec 11, 2008 at 6:18 AM,  <<a href="mailto:skip@pobox.com" target="_blank">skip@pobox.com</a>> wrote:<br>
>><br>
>>> If anything it's wrong, it's that they share the same name. This<br>
>>> wasn't always the case. Do you really want to go back to .split() and<br>
>>> .splitfields(sep)?<br>
>><br>
>> I hope not.  I consider the current situation to be a definite<br>
>> improvement.  I sometimes forgot which was which.<br>
>><br>
>> _______________________________________________<br>
>> Python-ideas mailing list<br>
>> <a href="mailto:Python-ideas@python.org" target="_blank">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>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org" target="_blank">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>
><br>
><br>
<br>
<br>
<br>
</div><div>--<br>
--Guido van Rossum (home page: <a href="http://www.python.org/%7Eguido/" target="_blank">http://www.python.org/~guido/</a>)<br>
_______________________________________________<br>
</div><div><div></div><div>Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">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></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Matt<br>
</div>