Philippe Cloutier <chea...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue28937> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com