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
eb83ffe1
Commit
eb83ffe1
authored
Sep 22, 2014
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error in split() examples (closes #22459)
Patch by Raúl Cumplido.
parent
61ff32f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Doc/library/stdtypes.rst
Doc/library/stdtypes.rst
+2
-2
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/stdtypes.rst
View file @
eb83ffe1
...
...
@@ -1830,7 +1830,7 @@ expression support in the :mod:`re` module).
>>> '1,2,3'.split(',')
['1', '2', '3']
>>> '1,2,3'.split(',', maxsplit=1)
['1', '2
3']
['1', '2
,
3']
>>> '1,2,,3,'.split(',')
['1', '2', '', '3', '']
...
...
@@ -2695,7 +2695,7 @@ produce new objects.
>>> b'1,2,3'.split(b',')
[b'1', b'2', b'3']
>>> b'1,2,3'.split(b',', maxsplit=1)
[b'1', b'2
3']
[b'1', b'2
,
3']
>>> b'1,2,,3,'.split(b',')
[b'1', b'2', b'', b'3', b'']
...
...
Misc/ACKS
View file @
eb83ffe1
...
...
@@ -296,6 +296,7 @@ Drew Csillag
Joaquin Cuenca Abela
John Cugini
Tom Culliton
Raúl Cumplido
Antonio Cuni
Brian Curtin
Lisandro Dalcin
...
...
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