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

2019-10-18 Thread Philippe Cloutier
Philippe Cloutier 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 Clou

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

2019-10-18 Thread Philippe Cloutier
Philippe Cloutier added the comment: I assume the "workaround" suggested by Raymond in msg282966 is supposed to read... filter(None, str.split(sep) ... rather than filter(None, sep.split(input)). -- ___ Python tracker <https://bu