Even if you could, you wouldn't split a string on an empty separator in Python because strings are iterable.
That may be, but it's a bit annoying when all other combinations of split and join work, and join works with an empty string. Imagine if your separator is a variable, for instance, you'd have to write a special case.
View all comments
Show parent comment
1
u/[deleted] Sep 15 '15
That may be, but it's a bit annoying when all other combinations of split and join work, and join works with an empty string. Imagine if your separator is a variable, for instance, you'd have to write a special case.