[issue28937] str.split(): allow removing empty strings (when sep is not None)
Matthew Barnett
report at bugs.python.org
Tue May 18 15:41:05 EDT 2021
Matthew Barnett <python at mrabarnett.plus.com> added the comment:
We have that already, although it's spelled:
' x y z'.split(maxsplit=1) == ['x', 'y z']
because the keepempty option doesn't exist yet.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28937>
_______________________________________
More information about the Python-bugs-list
mailing list