Message282927
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:54 | barry | set | recipients:
+ barry, serhiy.storchaka, abarry |
2016-12-11 15:35:54 | barry | link | issue28937 messages |
2016-12-11 15:35:54 | barry | create | |
|