[Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs. (original) (raw)
Sam Partington sam.partington at gmail.com
Thu Jun 7 12:08:09 CEST 2012
- Previous message: [Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.
- Next message: [Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 withsplinelines(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
- Previous message: [Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.
- Next message: [Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]