[issue28937] str.split(): remove empty strings when sep is not None

Guido van Rossum report at bugs.python.org
Mon Dec 12 12:12:14 EST 2016


Guido van Rossum added the comment:

> except the other way around

Whoops. Indeed. So all's well here.

> x.split(tuple(string.whitespace))

Yes, that's what I was after. (But it can be a separate PR.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28937>
_______________________________________


More information about the Python-bugs-list mailing list