[issue28937] str.split(): remove empty strings when sep is not None
Emanuel Barry
report at bugs.python.org
Sun Dec 11 10:38:20 EST 2016
Emanuel Barry added the comment:
Changing the behaviour when sep is None is a big backwards-compatibility break, and I'm not sure we'd even want that. It's logical to allow passing None to mean the same thing as NULL (i.e. no arguments), and the behaviour in that case has been like that for... well, long enough that changing it isn't really feasible.
I agree with Barry here, especially since this is a completely opt-in feature, and existing behaviour isn't changed without the user's knowledge.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28937>
_______________________________________
More information about the Python-bugs-list
mailing list