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

This commit is contained in:
Raymond Hettinger 2012-06-02 01:42:58 -04:00
parent 4fbf7c61fe
commit aad5b02e62
3 changed files with 3 additions and 3 deletions

View File

@ -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\

View File

@ -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\

View File

@ -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\