[Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs. (original) (raw)
R. David Murray rdmurray at bitdance.com
Sat Jun 2 05:24:34 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 Sat, 02 Jun 2012 10:42:13 +1000, Nick Coghlan <ncoghlan at gmail.com> 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']
.s/splinelines/splitlines/
Oops.
Maybe also show what split() would do for that string?
I'd rather not, since the split examples are just above it in the docs.
--David
- 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 ]