[Python-Dev] Re: Re: pre-PEP: Complete, Structured Regular ExpressionGroup Matching

Erik Heneryd erik at heneryd.com
Tue Aug 10 16:04:39 CEST 2004


Fredrik Lundh wrote:
> if done on the C level, that is.  partial compilation on the Python level
> is slightly easier, as you've just shown.  clever!
> 
> (but probably rather slow; I still recommend building something on top
> of the scanner object)

Yes, ofcourse it's slow, as I recursivly compile subpatterns and try 
them out, but as things are, it's probably much easier to implement it 
this way than using scanners, which I suspect is a lot of work (given 
the structmatch interface)...


Erik


More information about the Python-Dev mailing list