[Python-Dev] PEP 332 revival in coordination with pep 349? [Was:Re: release plan for 2.5 ?]
Fredrik Lundh
fredrik at pythonware.com
Mon Feb 27 16:34:00 CET 2006
Just van Rossum wrote:
> > If bytes support the buffer interface, we get another interesting
> > issue -- regular expressions over bytes. Brr.
>
> We already have that:
>
> >>> import re, array
> >>> re.search('\2', array.array('B', [1, 2, 3, 4])).group()
> array('B', [2])
> >>>
>
> Not sure whether to blame array or re, though...
SRE. iirc, the design rationale was to support RE over mmap'ed regions.
</F>
More information about the Python-Dev
mailing list