[Python-Dev] string.split

Raymond Hettinger python at rcn.com
Sat Feb 21 01:46:52 EST 2004


> Andreas Beyer wrote:
> > I think there are different interpretations of what a separator is.
That
> > is not necessarily a bug, because without stripping a new-line at
the
> > end of the string would yield a non-intuitive result list. However,
the
> > difference between split with and without the 'sep' argument should
be
> > documented.

[Sjoerd Mullender]
> This is intended behavior and is not going to be changed.
> 
> However, I must agree that the documentation for the string method is
> somewhat lacking.  The documentation of the split function in the
string
> module is much clearer.

If you copy your note into SourceForge and assign it to me, you will
substantially increase the odds that I will fix the docs in the next few
days.


Raymond Hettinger




More information about the Python-Dev mailing list