This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients abarry, barry, cheryl.sabella, gvanrossum, mrabarnett, rhettinger, serhiy.storchaka, syeberman, veky
Date 2019-03-19.23:41:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553038868.79.0.240263727589.issue28937@roundup.psfhosted.org>
In-reply-to
Content
@veky - Thank you for pointing out splitlines(keepends=True).  If we wanted consistency, then we'd change the sense and use something like .split(keepempty=True), however:

* I don't like run-on names, so I would suggest keep_empty
* Maybe just `keep` is enough
* Either way, this should be a keyword only argument
* The default would still be None (i.e. current behavior), but keep_empty=True would be equivalent to prune=False and keep_empty=False would be equivalent to prune=True in the previous discussion.
History
Date User Action Args
2019-03-19 23:41:08barrysetrecipients: + barry, gvanrossum, rhettinger, syeberman, mrabarnett, serhiy.storchaka, veky, abarry, cheryl.sabella
2019-03-19 23:41:08barrysetmessageid: <1553038868.79.0.240263727589.issue28937@roundup.psfhosted.org>
2019-03-19 23:41:08barrylinkissue28937 messages
2019-03-19 23:41:08barrycreate