[Patches] [ python-Patches-421214 ] splitlist() for raw and unicode strings
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 04 May 2001 00:54:13 -0700
Patches item #421214, was updated on 2001-05-03 18:29
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=421214&group_id=5470
Category: core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gustavo Niemeyer (niemeyer)
>Assigned to: M.-A. Lemburg (lemburg)
Summary: splitlist() for raw and unicode strings
Initial Comment:
This patch implements a feature that I wanted for a
long time in
python. It implements the splitlist() method for normal
and unicode strings.
This allows one to do something like:
"one, two and three".splitlist([",", "and"])
and get:
["one", " two ", "three"]
----------------------------------------------------------------------
>Comment By: M.-A. Lemburg (lemburg)
Date: 2001-05-04 00:54
Message:
Logged In: YES
user_id=38388
I like this idea, but will have to check with the code bloat
police first.
BTW, I'd rename .splitlist() to .tokenize() since that's
what the method is really about (it is very similiar to C's
strtok()).
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=421214&group_id=5470