Message327106
If change the default behavior we need to wait several releases after adding this option. Users should be able to pick the current behavior explicitly.
Currently the workaround is using regular expressions.
For s.splitlines(keepends=False):
re.split(r'\n|\r\n?', s)
For s.splitlines(keepends=True):
re.split(r'(?<=\n)|(?<=\r)(?!\n)', s) |
|
Date |
User |
Action |
Args |
2018-10-05 06:42:35 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, nascheme, terry.reedy, gregory.p.smith, vstinner, jwilk, ezio.melotti, r.david.murray, docs@python, python-dev, martin.panter, scharron, Alexander Schrijver |
2018-10-05 06:42:34 | serhiy.storchaka | set | messageid: <1538721754.98.0.545547206417.issue22232@psf.upfronthosting.co.za> |
2018-10-05 06:42:34 | serhiy.storchaka | link | issue22232 messages |
2018-10-05 06:42:34 | serhiy.storchaka | create | |
|