Message282927
| Author |
barry |
| Recipients |
abarry, barry, serhiy.storchaka |
| Date |
2016年12月11日.15:35:54 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<20161211103550.48ccb30b@subdivisions.wooz.org> |
| In-reply-to |
<1481470360.74.0.839213636317.issue28937@psf.upfronthosting.co.za> |
| Content |
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. |
|