Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8a29ce85
Commit
8a29ce85
authored
Jun 02, 2012
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve tooltips for splitlines() by showing that the default for keepends is False.
parent
a41988c3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Objects/bytearrayobject.c
Objects/bytearrayobject.c
+1
-1
Objects/stringobject.c
Objects/stringobject.c
+1
-1
Objects/unicodeobject.c
Objects/unicodeobject.c
+1
-1
No files found.
Objects/bytearrayobject.c
View file @
8a29ce85
...
@@ -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
\
...
...
Objects/stringobject.c
View file @
8a29ce85
...
@@ -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
\
...
...
Objects/unicodeobject.c
View file @
8a29ce85
...
@@ -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
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment