[Python-ideas] str.split with empty separator
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Jul 30 02:33:40 CEST 2010
Alexandre Conrad wrote:
> What if str.split could take an empty separator?
Do you have a use case for this?
> Right now you can join from an empty string...
> So why can't we split from an empty string?
Because splitting on an empty string is ambiguous,
and nobody has so far put forward a compelling use
case that would show how the ambiguity should best
be resolved.
--
Greg
More information about the Python-ideas
mailing list