[Python-Dev] SRE incompatibility

Sjoerd Mullender sjoerd@oratrix.nl
Mon, 07 Aug 2000 18:19:59 +0200


Is this problem ever going to be solved or is it too hard?
If it's too hard, I can fix xmllib to not depend on this.  This
incompatibility is the only reason I'm still not using sre.

In case you don't remember, the regexp that is referred to is
regexp = '(([a-z]+):)?([a-z]+)$'

On Wed, Jul 5 2000 "Fredrik Lundh" wrote:

> sjoerd wrote:
> 
> > >>> re.match(regexp, 'smil').group(0,1,2,3)
> > ('smil', None, 's', 'smil')
> > >>> import pre
> > >>> pre.match(regexp, 'smil').group(0,1,2,3)
> > ('smil', None, None, 'smil')
> > 
> > Needless to say, I am relying on the third value being None...
> 
> I've confirmed this (last night's fix should have solved this,
> but it didn't).  I'll post patches as soon as I have them...
> 
> </F>
> 
> 

-- Sjoerd Mullender <sjoerd.mullender@oratrix.com>