[Python-Dev] Re: re.split on empty patterns

Nick Coghlan ncoghlan at iinet.net.au
Wed Aug 11 07:46:25 CEST 2004


Mike Coleman wrote:
> The "empty okay" concept, on the other hand, seems to have to do specifically
> with how re.split uses the pattern.  That is, in the process of finding
> matches decides (or not) to discard the empty matches.

Hmm, to me, this suggests 'split_empty = False' as your new parameter
for re.split.

Cheers,
Nick.



-- 
Nick Coghlan               |  Eugene, Oregon
Email: ncoghlan at email.com  |             USA




More information about the Python-Dev mailing list