Small inconsistency between string.split and "".split

Walter Dörwald walter at livinglogic.de
Tue Sep 14 06:01:29 EDT 2004


Carlos Ribeiro wrote:
> On Mon, 13 Sep 2004 10:59:27 -0700, Inyeol Lee <inyeol.lee at siimage.com> wrote:
> 
>>I think "None" trick was documented here since string method was
>>introduced.
> 
> I got it now. The problem is that I had just read the docstring --
> yes, not the manual, and admit it, it was lazyness of my part ;-) But
> anyway... the keyword parameter handling is inconsistent, *and* the
> docstring could mention something about sep="None".

I've fixed the docstring for both unicode.split() and
string.split() to give a hint about the None default. Note
that the docstring for str.split() already *did* mention
the None option.

Bye,
    Walter Dörwald




More information about the Python-list mailing list