[Python-checkins] cpython (3.2): add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from
sandro.tosi
python-checkins at python.org
Sun Aug 12 12:36:05 CEST 2012
http://hg.python.org/cpython/rev/7346821faf68
changeset: 78522:7346821faf68
branch: 3.2
parent: 78519:b2907d1e5341
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sun Aug 12 12:35:14 2012 +0200
summary:
add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from docs@
files:
Doc/library/stdtypes.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1334,7 +1334,7 @@
For example, ``'ab c\n\nde fg\rkl\r\n'.splitlines()`` returns
``['ab c', '', 'de fg', 'kl']``, while the same call with ``splitlines(True)``
- returns ``['ab c\n', '\n, 'de fg\r', 'kl\r\n']``.
+ returns ``['ab c\n', '\n', 'de fg\r', 'kl\r\n']``.
Unlike :meth:`~str.split` when a delimiter string *sep* is given, this
method returns an empty list for the empty string, and a terminal line
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list