Editable strings anyone?

Paul Rubin phr-n2002a at nightsong.com
Mon Feb 18 01:53:54 EST 2002


"Jason Orendorff" <jason at jorendorff.com> writes:
> > that has multiple segments and implements the buffer interface.
> > Then the re module can be extended to handle the buffer interface,
> > if it doesn't handle it already.
> 
> Someone may have mentioned this before, but I think you would have
> to sneakily close the gap whenever the re module asks you for your
> buffer pointer, because re needs a contiguous buffer.  See:

Yes, that's why the re module would have to be extended--to handle
noncontiguous segments.  The GNU regexp library already has an API
for that and it shouldn't be that hard to add something similar
to Python's re library.



More information about the Python-list mailing list