[Python-checkins] cpython (2.7): Improve tooltips for splitlines() by showing that the default for keepends is

raymond.hettinger python-checkins at python.org
Sat Jun 2 07:43:16 CEST 2012


http://hg.python.org/cpython/rev/2fbee0b741f7
changeset:   77292:2fbee0b741f7
branch:      2.7
parent:      77290:0df7594e4ebd
user:        Raymond Hettinger <python at rcn.com>
date:        Sat Jun 02 01:42:58 2012 -0400
summary:
  Improve tooltips for splitlines() by showing that the default for keepends is False.

files:
  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
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -2649,7 +2649,7 @@
 }
 
 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
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -3545,7 +3545,7 @@
 
 
 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
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -7521,7 +7521,7 @@
 }
 
 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\

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list