This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients abarry, barry, serhiy.storchaka
Date 2016-12-11.15:35:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
On Dec 11, 2016, at 03:32 PM, Serhiy Storchaka wrote:

>Current behavior is consistent with str.count():
>    len(string.split(sep)) == string.count(sep) + 1
>and re.split():
>    re.split(re.escape(sep), string) == string.split(sep)

Yep.  My suggestion is a straight up 'practicality beats purity' request.

>May be the behavior when sep is None should be changed for consistency with
>the behavior when sep is not None?

I'm very strongly -1 on changing any existing behavior.
Date User Action Args
2016-12-11 15:35:54barrysetrecipients: + barry, serhiy.storchaka, abarry
2016-12-11 15:35:54barrylinkissue28937 messages
2016-12-11 15:35:54barrycreate