[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