Message393889
> 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) |
|
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 | |
|