Commit 8a29ce85 authored by Raymond Hettinger's avatar Raymond Hettinger

Improve tooltips for splitlines() by showing that the default for keepends is False.

parent a41988c3
...@@ -2649,7 +2649,7 @@ bytearray_join(PyByteArrayObject *self, PyObject *it) ...@@ -2649,7 +2649,7 @@ bytearray_join(PyByteArrayObject *self, PyObject *it)
} }
PyDoc_STRVAR(splitlines__doc__, PyDoc_STRVAR(splitlines__doc__,
"B.splitlines([keepends]) -> list of lines\n\ "B.splitlines(keepends=False) -> list of lines\n\
\n\ \n\
Return a list of the lines in B, breaking at line boundaries.\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\ Line breaks are not included in the resulting list unless keepends\n\
......
...@@ -3545,7 +3545,7 @@ string_istitle(PyStringObject *self, PyObject *uncased) ...@@ -3545,7 +3545,7 @@ string_istitle(PyStringObject *self, PyObject *uncased)
PyDoc_STRVAR(splitlines__doc__, PyDoc_STRVAR(splitlines__doc__,
"S.splitlines([keepends]) -> list of strings\n\ "S.splitlines(keepends=False) -> list of strings\n\
\n\ \n\
Return a list of the lines in S, breaking at line boundaries.\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\ Line breaks are not included in the resulting list unless keepends\n\
......
...@@ -7521,7 +7521,7 @@ unicode_rsplit(PyUnicodeObject *self, PyObject *args) ...@@ -7521,7 +7521,7 @@ unicode_rsplit(PyUnicodeObject *self, PyObject *args)
} }
PyDoc_STRVAR(splitlines__doc__, PyDoc_STRVAR(splitlines__doc__,
"S.splitlines([keepends]) -> list of strings\n\ "S.splitlines(keepends=False) -> list of strings\n\
\n\ \n\
Return a list of the lines in S, breaking at line boundaries.\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\ Line breaks are not included in the resulting list unless keepends\n\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment