[Python-bugs-list] [Bug #123261] string.split

noreply@sourceforge.net noreply@sourceforge.net
Thu, 23 Nov 2000 09:38:10 -0800


Bug #123261, was updated on 2000-Nov-23 09:38
Here is a current snapshot of the bug.

Project: Python
Category: Library
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: string.split

Details: Hi,

The following program:

#!/usr/bin/python
import string
print len(string.split('', ' '))
print len(string.split(' ', ' '))

prints:
1
2

This is of course sort of an undefined case, but I think it should be:
0
0
or at the very least:
0
1

Perl always prints 0.


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=123261&group_id=5470