Re: [Python-Dev] regex module

2010-01-13 Thread Guido van Rossum
Memories of days past... Python had several regular expression implementations before, one of which was called "regex". But I would rather not have a new module -- I would much rather have a flag specifying the new (backwards incompatible) syntax/semantics. The flag would have a long name (e.g. re

Re: [Python-Dev] regex module

2010-01-12 Thread Brett Cannon
On Tue, Jan 12, 2010 at 14:10, MRAB wrote: > Hi all, > > I'm back on the regex module after doing other things and I'd like your > opinion on a number of matters: > > Firstly, the current re module has a bug whereby it doesn't split on > zero-width matches. The BDFL has said that this behaviour s

Re: [Python-Dev] regex module

2010-01-12 Thread MRAB
MRAB wrote: Hi all, I'm back on the regex module after doing other things and I'd like your opinion on a number of matters: Firstly, the current re module has a bug whereby it doesn't split on zero-width matches. The BDFL has said that this behaviour should be retained by default in case any ex

Re: [Python-Dev] regex module

2010-01-12 Thread MRAB
Terry Reedy wrote: On 1/12/2010 5:10 PM, MRAB wrote: Hi all, I'm back on the regex module after doing other things and I'd like your opinion on a number of matters: Firstly, the current re module has a bug whereby it doesn't split on zero-width matches. The BDFL has said that this behaviour sh

Re: [Python-Dev] regex module

2010-01-12 Thread Terry Reedy
On 1/12/2010 5:10 PM, MRAB wrote: Hi all, I'm back on the regex module after doing other things and I'd like your opinion on a number of matters: Firstly, the current re module has a bug whereby it doesn't split on zero-width matches. The BDFL has said that this behaviour should be retained by

[Python-Dev] regex module

2010-01-12 Thread MRAB
Hi all, I'm back on the regex module after doing other things and I'd like your opinion on a number of matters: Firstly, the current re module has a bug whereby it doesn't split on zero-width matches. The BDFL has said that this behaviour should be retained by default in case any existing softwa