Daniel Dittmar daniel.dittmar at
Wed Sep 5 10:22:35 CEST 2001

> set a literal string that is the seperator. How do I split on any or all
> occurrences of (for example) whitespace and a comma, without using
> I mean string.split() must be able to do it anyway to achieve the default
> behaviour.

You'll have to use re.split. Splitting on white space is a separate function
inside the Python interpreter which uses the C isspace () macro and not an
array of characters.


More information about the Python-list mailing list