need fast parser for comma/space delimited numbers

Les Schaffer godzilla at netmeg.net
Sat Mar 18 21:39:22 EST 2000


> Why are you using filter?  Why not just

> return string.split(str, self.splitStr)

(grumble ... moan .... self-loathing.....)

i was doing this:

x = string.split( 'hey boo   whadya got   in your    picnic  basket',' ' )

and getting 

['hey', 'boo', '', '', 'whadya', 'got', '', '', 'in', 'your', '', '',
'', 'picnic', '', 'basket']

hey! dats how we dit eet in perl, no????

les



More information about the Python-list mailing list