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

2012-06-08 Thread Eric Snow
On Fri, Jun 8, 2012 at 11:08 AM, R. David Murray wrote: > The are four issues: (1) we build the python3 docs using python2, so 'make > doctest' on python3 doesn't currently work For reference: http://bugs.python.org/issue10224. Are there any others? -eric ___

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

2012-06-08 Thread R. David Murray
On Fri, 08 Jun 2012 07:20:55 -0400, Tres Seaver wrote: > On 06/07/2012 08:55 AM, R. David Murray wrote: > > On Thu, 07 Jun 2012 11:08:09 +0100, Sam Partington > > wrote: > > >> Wouldn't that be better written as a doctest and so avoid any other > >> typos? > > > > Possibly, except (1) I don't t

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

2012-06-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/07/2012 08:55 AM, R. David Murray wrote: > On Thu, 07 Jun 2012 11:08:09 +0100, Sam Partington > wrote: >> Wouldn't that be better written as a doctest and so avoid any other >> typos? > > Possibly, except (1) I don't think we currently actuall

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

2012-06-07 Thread R. David Murray
On Thu, 07 Jun 2012 11:08:09 +0100, Sam Partington wrote: > > On Jun 2, 2012 6:21 AM, "r.david.murray" 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 `

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

2012-06-07 Thread Sam Partington
> On Jun 2, 2012 6:21 AM, "r.david.murray" 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

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

2012-06-01 Thread Nick Coghlan
On Sat, Jun 2, 2012 at 1:24 PM, R. David Murray wrote: >> 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. Fair point - one of the downsides of reviewing a diff out of context :) Cheers, Nick. -- Nick Coghlan  

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

2012-06-01 Thread R. David Murray
On Sat, 02 Jun 2012 10:42:13 +1000, Nick Coghlan 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']``. > > s/splinelines/split

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

2012-06-01 Thread Nick Coghlan
On Jun 2, 2012 6:21 AM, "r.david.murray" wrote: > > http://hg.python.org/cpython/rev/24572015e24f > changeset: 77288:24572015e24f > branch: 3.2 > parent: 77285:bf6305bce3af > user:R David Murray > date:Fri Jun 01 16:19:36 2012 -0400 > summary: > #14957: clarify splitl