From aad5b02e621a64560af56937523e0072701e8c86 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 2 Jun 2012 01:42:58 -0400 Subject: [PATCH] Improve tooltips for splitlines() by showing that the default for keepends is False. --- Objects/bytearrayobject.c | 2 +- Objects/stringobject.c | 2 +- Objects/unicodeobject.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 03604633a01..4ac0ae75aed 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -2649,7 +2649,7 @@ bytearray_join(PyByteArrayObject *self, PyObject *it) } PyDoc_STRVAR(splitlines__doc__, -"B.splitlines([keepends]) -> list of lines\n\ +"B.splitlines(keepends=False) -> list of lines\n\ \n\ Return a list of the lines in B, breaking at line boundaries.\n\ Line breaks are not included in the resulting list unless keepends\n\ diff --git a/Objects/stringobject.c b/Objects/stringobject.c index ab377dd7a2d..fd2f63001d9 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -3545,7 +3545,7 @@ string_istitle(PyStringObject *self, PyObject *uncased) PyDoc_STRVAR(splitlines__doc__, -"S.splitlines([keepends]) -> list of strings\n\ +"S.splitlines(keepends=False) -> list of strings\n\ \n\ Return a list of the lines in S, breaking at line boundaries.\n\ Line breaks are not included in the resulting list unless keepends\n\ diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3dfbea1cc52..7af7b50a946 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7521,7 +7521,7 @@ unicode_rsplit(PyUnicodeObject *self, PyObject *args) } PyDoc_STRVAR(splitlines__doc__, - "S.splitlines([keepends]) -> list of strings\n\ + "S.splitlines(keepends=False) -> list of strings\n\ \n\ Return a list of the lines in S, breaking at line boundaries.\n\ Line breaks are not included in the resulting list unless keepends\n\