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
bb30af45
Commit
bb30af45
authored
Sep 06, 2004
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing close parenthesis.
parent
18c69609
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+3
-3
No files found.
Doc/lib/libstdtypes.tex
View file @
bb30af45
...
...
@@ -755,16 +755,16 @@ elements). If \var{maxsplit} is not specified or is zero, then there
is no limit on the number of splits (all possible splits are made).
Consecutive delimiters are not grouped together and are
deemed to delimit empty strings (for example,
\samp
{
'1,,2'.split(',')
}
returns
\samp
{
['1', '', '2']
}
. The
\var
{
sep
}
argument may consist of
returns
\samp
{
['1', '', '2']
}
)
. The
\var
{
sep
}
argument may consist of
multiple characters (for example,
\samp
{
'1, 2, 3'.split(', ')
}
returns
\samp
{
['1', '2', '3']
}
. Splitting an empty string with a specified
\samp
{
['1', '2', '3']
}
)
. Splitting an empty string with a specified
separator returns an empty list.
If
\var
{
sep
}
is not specified or is
\code
{
None
}
, a different splitting
algorithm is applied. Words are separated by arbitrary length strings of
whitespace characters (spaces, tabs, newlines, returns, and formfeeds).
Consecutive whitespace delimiters are treated as a single delimiter
(
\samp
{
'1 2 3'.split()
}
returns
\samp
{
['1', '2', '3']
}
. Splitting an
(
\samp
{
'1 2 3'.split()
}
returns
\samp
{
['1', '2', '3']
}
)
. Splitting an
empty string returns
\samp
{
['']
}
.
\end{methoddesc}
...
...
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