B
bk_kl
Hi,
I think the following behavior of the build in function 'split' is inconsistent.
What do you think?
I'm using python 2.3.3 on Windows 2000.
(Perl's split only returns all items up to the last non-empty item,
e.g. <perl>split /;/, "; ;;;"; gets you ['', ' ']. I find this confusing, too).
I think the following behavior of the build in function 'split' is inconsistent.
What do you think?
['']"".split() []
"".split(";")
I'm using python 2.3.3 on Windows 2000.
(Perl's split only returns all items up to the last non-empty item,
e.g. <perl>split /;/, "; ;;;"; gets you ['', ' ']. I find this confusing, too).