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

Philippe Cloutier report at bugs.python.org
Fri Oct 18 12:10:05 EDT 2019


Philippe Cloutier <chealer at gmail.com> added the comment:

I understood the current (only) behavior, but coming from a PHP background, I really didn't expect it. Thank you for this request, I would definitely like the ability to get behavior matching PHP's explode().

----------
nosy: +Philippe Cloutier
title: str.split(): remove empty strings when sep is not None -> str.split(): allow removing empty strings (when sep is not None)

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


More information about the Python-bugs-list mailing list