Matt Chaput <m...@whoosh.ca> added the comment:

Ezio, no offense, but I think it's safe to say you've completely misunderstood 
this bug. It is not about "explaining what a regex matches" or optimizing the 
regex. Read the last sentences of the two paragraphs explaining the proposed 
methods for the use cases. This is about allowing MY CODE to programmatically 
get certain information about a regex object to allow it to limit the number of 
times it has to call regex.match(). AFAIK there's no good way to get this 
information about a regex object without adding these methods or building my 
own pure-Python regex interpreter, which would be both Herculean and pointless.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12870>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to