perlmonger (
perlmonger) wrote2008-01-11 05:15 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
pass me another split, sergeant, this one's elfed
[Poll #1119627]
[ ETA that this is an abstract question, not an invitation for a language war, though go ahead and have one if you must ]
[ ETA that this is an abstract question, not an invitation for a language war, though go ahead and have one if you must ]
Some other response....
no subject
no subject
I'm a Unix pragmatist though - SIGSEGV will do nicely ;)
no subject
no subject
Python naturally does both, as this is the most confusing behaviour possible. It only makes sense in Sanskrit, under particular phases of the moon. If you specify the toke, it returns an array of one empty string. If you _don't_ specify the token, then it does "default-based splitting" and looks for a normalised sequence of a set of the usual whitespace characters. BUT it also changes its empty string behavour so that it then returns an empty array instead!
(no subject)
(no subject)
(no subject)
no subject
(no subject)
(no subject)
(no subject)
(no subject)