[Python-ideas] Support parsing stream with `re`

Nathaniel Smith njs at pobox.com
Sun Oct 7 08:15:29 EDT 2018

On Sat, Oct 6, 2018, 18:40 Steven D'Aprano <steve at pearwood.info> wrote:

> The message I take from this is:
> - regex engines certainly can be written to support streaming data;
> - but few of them are;
> - and it is exceedingly unlikely to be able to easily (or at all)
>   retro-fit that support to Python's existing re module.

I don't know enough about the re module internals to make an informed guess
about the difficulty.

On a quick glance, it does seem to store most intermediate match state in
explicit structs rather than on the call stack...


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181007/d16ef8bf/attachment-0001.html>

More information about the Python-ideas mailing list