[Python-ideas] Adding function checks to regex
Antoine Pitrou
solipsis at pitrou.net
Sat Mar 19 22:07:33 CET 2011
On Sat, 19 Mar 2011 03:25:57 +0000
MRAB <python at mrabarnett.plus.com> wrote:
>
> However, it occurs to me that there may be a case for being able to call
> a supplied function to perform such checking.
What would be such a case?
Adding more complications to the regex syntax and semantics is
something most of us would frown upon, IMHO. *Especially* if it involves
mixing in arbitrary Python callbacks referenced by name in the regex...
Regards
Antoine.
More information about the Python-ideas
mailing list