[issue28937] str.split(): allow removing empty strings (when sep is not None)
Mark Bell
report at bugs.python.org
Tue May 18 14:34:35 EDT 2021
Mark Bell <mark00bell at googlemail.com> added the comment:
So I think I agree with you about the difference between .split() and .split(' '). However wouldn't that mean that
' x y z'.split(maxsplit=1, keepempty=False) == ['x', 'y z']
since it should do one split.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28937>
_______________________________________
More information about the Python-bugs-list
mailing list