[issue28937] str.split(): remove empty strings when sep is not None
Vedran Čačić
report at bugs.python.org
Mon Dec 12 00:09:27 EST 2016
Vedran Čačić added the comment:
The problem with .split is its split (pun intended) personality: it really is two functions that have separate use cases, and have different algorithms; and people think about them as separate functions. In that view, we have just fallen afoul of Guido's rule of no literal passing bool arguments. The true solution would probably be to bite the bullet and have two separate methods. After all, .splitlines is a separate method for precisely such a reason.
----------
nosy: +veky
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28937>
_______________________________________
More information about the Python-bugs-list
mailing list