PEP 358 and operations on bytes

Paul Rubin http
Wed Oct 4 18:05:03 CEST 2006


"John Machin" <sjmachin at lexicon.net> writes:
> But not on other integer subtypes. If regexps should not be restricted
> to text, they should work on domains whose number of symbols is greater
> than 256, shouldn't they?

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.



More information about the Python-list mailing list