]> granicus.if.org Git - python/commitdiff
fix error in split() examples (closes #22459)
authorBenjamin Peterson <benjamin@python.org>
Tue, 23 Sep 2014 02:43:50 +0000 (22:43 -0400)
committerBenjamin Peterson <benjamin@python.org>
Tue, 23 Sep 2014 02:43:50 +0000 (22:43 -0400)
Patch by Raúl Cumplido.

Doc/library/stdtypes.rst
Misc/ACKS

index 2dd57bce8df69441aef3ce51b02ce3b3c75cddec..8778212cdb61873c67f7ff1ed800fe758024f893 100644 (file)
@@ -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'']
 
index 29283094c97887c80a7d111e7b8840c389158f56..4a69dfe6e11518815cd871e1686c95ae42ea6182 100644 (file)
--- 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