diff options
author | Raymond Hettinger <python@rcn.com> | 2012-06-02 05:42:58 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2012-06-02 05:42:58 (GMT) |
commit | aad5b02e621a64560af56937523e0072701e8c86 (patch) | |
tree | 1213d97baea877e207657a27fb701ce2ffc23dad | |
parent | 4fbf7c61fea1cdce8487ed9582ab9ba73fcf53ea (diff) | |
download | cpython-aad5b02e621a64560af56937523e0072701e8c86.zip cpython-aad5b02e621a64560af56937523e0072701e8c86.tar.gz cpython-aad5b02e621a64560af56937523e0072701e8c86.tar.bz2 |
Improve tooltips for splitlines() by showing that the default for keepends is False.
-rw-r--r-- | Objects/bytearrayobject.c | 2 | ||||
-rw-r--r-- | Objects/stringobject.c | 2 | ||||
-rw-r--r-- | Objects/unicodeobject.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 0360463..4ac0ae7 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 ab377dd..fd2f630 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 3dfbea1..7af7b50 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\ |