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

Ram Rachum ram at rachum.com
Sat Oct 6 03:22:20 EDT 2018


I'd like to use the re module to parse a long text file, 1GB in size. I
wish that the re module could parse a stream, so I wouldn't have to load
the whole thing into memory. I'd like to iterate over matches from the
stream without keeping the old matches and input in RAM.

What do you think?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181006/47a184a4/attachment.html>

More information about the Python-ideas mailing list