summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-09-23 02:43:50 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-09-23 02:43:50 (GMT)
commiteb83ffe1b3ffda0179b83244a4c25afe367c1b4d (patch)
tree28208efe90210a6cfdff93fee685217afb9c10ee
parent61ff32f99ab98565284ed2e99073c4d41775c631 (diff)
downloadcpython-eb83ffe1b3ffda0179b83244a4c25afe367c1b4d.zip
cpython-eb83ffe1b3ffda0179b83244a4c25afe367c1b4d.tar.gz
cpython-eb83ffe1b3ffda0179b83244a4c25afe367c1b4d.tar.bz2
fix error in split() examples (closes #22459)
Patch by Raúl Cumplido.
-rw-r--r--Doc/library/stdtypes.rst4
-rw-r--r--Misc/ACKS1
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 2dd57bc..8778212 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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'']
diff --git a/Misc/ACKS b/Misc/ACKS
index 2928309..4a69dfe 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -296,6 +296,7 @@ Drew Csillag
Joaquin Cuenca Abela
John Cugini
Tom Culliton
+Raúl Cumplido
Antonio Cuni
Brian Curtin
Lisandro Dalcin