Message338422
| 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. |
|