[issue15554] correct and clarify str.splitlines() documentation

R. David Murray report at bugs.python.org
Mon Aug 6 03:59:02 CEST 2012


R. David Murray added the comment:

Ah, now I see what you are talking about.  Yes, your revision in the comment is clearer; but, unless I read it wrong, in the patch it now sounds like you are saying that ''.splitlines() does not return the same result as ''.split() when in fact it does.

I would also prefer that the "differences" discussion come in the separate paragraph after the specification of the behavior of the function, rather than the way you have it split up in the patch.  I would include the mention of the lack-of-extra-line as part of the differences discussion: as I said I think that behavior follows logically from the fact that the function is splitting lines and so doesn't belong in the basic function description.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15554>
_______________________________________


More information about the Python-bugs-list mailing list