[Python-Dev] Bug 911080, string split oddness

Sjoerd Mullender sjoerd at acm.org
Mon Mar 8 03:04:52 EST 2004


Greg Ewing wrote:
> Jeff Epler <jepler at unpythonic.net>:
> 
> 
>>I think the current version documentation intends to explain the
>>no-argument form with this sentence:
>>    If sep is not specified or None, any whitespace string is a separator.
>>    [http://python.org/doc/current/lib/string-methods.html#l2h-197]
> 
> 
> I'm inclined to agree with Pete Shinners that the above
> explanation is perhaps a little too compressed.
> 
> Maybe "any string of consecutive whitespace characters is a
> separator". Perhaps with an explicit note that this is NOT
> equivalent to .split(" \t\n") and the reason why.
> 
> Pete Shinners <pete at shinners.org>:

See the existing bug report #901654 which is specifically about the 
split documentation.  Please add to that.

-- 
Sjoerd Mullender <sjoerd at acm.org>



More information about the Python-Dev mailing list