[Python-Dev] Regexp 2.7

Jared Grubb jared.grubb at gmail.com
Tue Mar 10 19:08:36 CET 2009

Would there be any interest in augmenting the test case library for  
the regex stuff?

When I was working on PyPy, we were using a simplified regular  
expression matcher to implement the tokenizer for Python. I was able  
to take a lot of PCRE's regex tests and port them to test our regular  
expression implementation (to make sure the DFA's were being optimized  
properly, etc).

I believe the PCRE test library was under a very liberal license, and  
so we may be able to do the same here. If there's interest in it, I  
can do the same for Python.


On 9 Mar 2009, at 16:07, Antoine Pitrou wrote:

> Facundo Batista <facundobatista <at> gmail.com> writes:
>>> Matthew Barnett has been doing a lot of work on the regular  
>>> expressions
> engine
>>> (it seems he hasn't finished yet) under http://bugs.python.org/issue2636 
>>> .
>>> However, the patches are really huge and touch all of the sre  
>>> internals. I
>>> wonder what the review process can be for such patches? Is there  
>>> someone
>>> knowledgeable enough to be able to review them?
>> All test cases run ok? How well covered is that library?
> I don't know, I haven't even tried it.
> Regards
> Antoine.

More information about the Python-Dev mailing list