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
065a32f5
Commit
065a32f5
authored
Sep 14, 2004
by
Walter Dörwald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the hint about the None default less ambiguous.
parent
782afc59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Lib/string.py
Lib/string.py
+1
-1
Objects/unicodeobject.c
Objects/unicodeobject.c
+1
-1
No files found.
Lib/string.py
View file @
065a32f5
...
...
@@ -282,7 +282,7 @@ def split(s, sep=None, maxsplit=-1):
Return
a
list
of
the
words
in
the
string
s
,
using
sep
as
the
delimiter
string
.
If
maxsplit
is
given
,
splits
at
no
more
than
maxsplit
places
(
resulting
in
at
most
maxsplit
+
1
words
).
If
sep
is
not
specified
or
None
,
any
whitespace
string
is
a
separator
.
is
not
specified
or
is
None
,
any
whitespace
string
is
a
separator
.
(
split
and
splitfields
are
synonymous
)
...
...
Objects/unicodeobject.c
View file @
065a32f5
...
...
@@ -5987,7 +5987,7 @@ PyDoc_STRVAR(split__doc__,
\n
\
Return a list of the words in S, using sep as the
\n
\
delimiter string. If maxsplit is given, at most maxsplit
\n
\
splits are done. If sep is not specified or None,
splits are done. If sep is not specified or
is
None,
any whitespace string is a separator."
);
static
PyObject
*
...
...
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