]> granicus.if.org Git - python/commitdiff
Improve tooltips for splitlines() by showing that the default for keepends is False.
authorRaymond Hettinger <python@rcn.com>
Sat, 2 Jun 2012 05:42:58 +0000 (01:42 -0400)
committerRaymond Hettinger <python@rcn.com>
Sat, 2 Jun 2012 05:42:58 +0000 (01:42 -0400)
Objects/bytearrayobject.c
Objects/stringobject.c
Objects/unicodeobject.c

index 03604633a01c9ea74fd59b5329f4b46bd03bdaee..4ac0ae75aedaac3184f6682fa976a774dc9f0c4e 100644 (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\
index ab377dd7a2d3b39519535ac73534735db531be98..fd2f63001d97b654277aed25591a47f7764bc6cf 100644 (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\
index 3dfbea1cc52e12431ae97785bd5a74577dfa84e8..7af7b50a9467f13fe5cdc299284cef615d089c09 100644 (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\