On Thu, Dec 11, 2008 at 12:11 PM, Matthew Russell
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.
I guess you have never had the need. Let me assure you that you are mistaken. :-)
How about str.split, partition and friends just raise ValueError exception when the value is the empty string?
Absolutely not.
Regards, Matt
2008/12/11 Terry Reedy
Guido van Rossum wrote:
On Thu, Dec 11, 2008 at 6:18 AM,
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 .splitfields(sep)?
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@python.org http://mail.python.org/mailman/listinfo/python-ideas
_______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas
-- --Guido van Rossum (home page: http://www.python.org/~guido/)