[Python-ideas] This seems like a wart to me...
matt.horizon5 at gmail.com
Thu Dec 11 21:11:41 CET 2008
It seems to me like spliting an empty string is something that makes little
sense to do,
similar to dividing by zero in terms of an analogy.
How about str.split, partition and friends just raise ValueError exception
when the value is the empty string?
2008/12/11 Terry Reedy <tjreedy at udel.edu>
> Guido van Rossum wrote:
>> On Thu, Dec 11, 2008 at 6:18 AM, <skip at pobox.com> wrote:
> If anything it's wrong, it's that they share the same name. This
>> wasn't always the case. Do you really want to go back to .split() and
> I hope not. I consider the current situation to be a definite improvement.
> I sometimes forgot which was which.
> Python-ideas mailing list
> Python-ideas at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas