[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.
> > is not necessarily a bug, because without stripping a new-line at
> > end of the string would yield a non-intuitive result list. However,
> > difference between split with and without the 'sep' argument should
> > 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
> 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

Raymond Hettinger

More information about the Python-Dev mailing list