PEP 358 and operations on bytes

Paul Rubin http
Wed Oct 4 14:16:52 EDT 2006


bearophileHUGS at lycos.com writes:
> > I think the underlying regexp C library isn't written that way.  I can
> > see reasons to want a higher-level regexp library that works on
> > arbitrary sequences, calling a user-supplied function to classify
> > sequence elements, the way current regexps use the character code to
> > classify characters.
> ...It seems an interesting thing, but can you find some uses for it?

Yes, I want something like that all the time for file scanning without
having to resort to parser modules or hand coded automata.



More information about the Python-list mailing list