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

Gerald S. Williams gsw@agere.com
Tue, 12 Mar 2002 12:00:26 -0500


Christian Tismer wrote:
> I'm just translating the Python Pocked Reference the
> second time, and I stumbled over this:
>    "funny".split("")
> gives a ValueError: empty separator.
> Why this?

I don't know, but I have a patch for stringobject.c and
stropmodule.c that gives the behavior you asked for (I
haven't done unicodeobject.c yet). Should I post it?

-Jerry

-O Gerald S. Williams, 22Y-103GA : mailto:gsw@agere.com O-
-O AGERE SYSTEMS, 555 UNION BLVD : office:610-712-8661  O-
-O ALLENTOWN, PA, USA 18109-3286 : mobile:908-672-7592  O-