[Python-Dev] "funny".split("")

Andrew Koenig ark@research.att.com
12 Mar 2002 14:01:16 -0500


Christian> Eeeeehhh!
Christian> That sounds very good.
Christian> It can make me unconvinced again, of course.
Christian> Split can never return the separator,
Christian> that makes the number of possible answers
Christian> not only finite, but unique!

Also, note that it does allow for empty elements in the result,
provided that the separator is not empty:

    >>> "a//b".split("/")
    ['a', '', 'b']

-- 
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark