[Python-checkins] cpython (3.4): fix error in split() examples (closes #22459)
benjamin.peterson
python-checkins at python.org
Tue Sep 23 04:44:50 CEST 2014
https://hg.python.org/cpython/rev/8eb4eec8626c
changeset: 92531:8eb4eec8626c
branch: 3.4
parent: 92529:81f2d5071da3
user: Benjamin Peterson <benjamin at python.org>
date: Mon Sep 22 22:43:50 2014 -0400
summary:
fix error in split() examples (closes #22459)
Patch by Raúl Cumplido.
files:
Doc/library/stdtypes.rst | 4 ++--
Misc/ACKS | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1830,7 +1830,7 @@
>>> '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 @@
>>> 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'']
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -296,6 +296,7 @@
Joaquin Cuenca Abela
John Cugini
Tom Culliton
+Raúl Cumplido
Antonio Cuni
Brian Curtin
Lisandro Dalcin
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list