Message393889
| Author |
Mark.Bell |
| Recipients |
Catherine.Devlin, Mark.Bell, Philippe Cloutier, ZackerySpytz, barry, cheryl.sabella, corona10, gvanrossum, karlcow, mrabarnett, serhiy.storchaka, syeberman, veky |
| Date |
2021年05月18日.17:07:52 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1621357672.35.0.93099323585.issue28937@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> suggests that empty strings don't count towards maxsplit
Thank you for the confirmation. Although just to clarify I guess you really mean "empty strings *that are dropped from the output* don't count towards maxsplit". Just to double check this, what do we expect the output of
' x y z'.split(maxsplit=1, keepempty=True)
to be?
I think it should be ['', ' x y z'] since in this case we are retaining empty strings and they should count towards the maxsplit.
(In the current patch this crashes with a core dump since it tries to write to unallocated memory) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2021年05月18日 17:07:52 | Mark.Bell | set | recipients:
+ Mark.Bell, gvanrossum, barry, syeberman, mrabarnett, karlcow, serhiy.storchaka, Catherine.Devlin, veky, cheryl.sabella, corona10, ZackerySpytz, Philippe Cloutier |
| 2021年05月18日 17:07:52 | Mark.Bell | set | messageid: <1621357672.35.0.93099323585.issue28937@roundup.psfhosted.org> |
| 2021年05月18日 17:07:52 | Mark.Bell | link | issue28937 messages |
| 2021年05月18日 17:07:52 | Mark.Bell | create |
|