A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-June/120026.html below:

[Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.

[Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.Sam Partington sam.partington at gmail.com
Thu Jun 7 12:08:09 CEST 2012
> On Jun 2, 2012 6:21 AM, "r.david.murray" <python-checkins at python.org> wrote:
>> +   For example, ``'ab c\n\nde fg\rkl\r\n'.splitlines()`` returns
>> +   ``['ab c', '', 'de fg', 'kl']``, while the same call with
>> ``splinelines(True)``
>> +   returns ``['ab c\n', '\n, 'de fg\r', 'kl\r\n']``

Wouldn't that be better written as a doctest and so avoid any other typos?

Sam
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4