[Python-ideas] Built-in parsing library

David Mertz mertz at gnosis.cx
Sun Mar 31 15:09:35 EDT 2019

There are about a half dozen widely used parsing libraries for Python. Each
one of them takes a dramatically different approach to the defining a
grammar. Each one has been debugged for over a decade.

While I can imagine proposing one for inclusion in the standard library,
you'd have to choose one (or write a new one) and explain why that one is
better for everyone (or at least a better starting point) than all the
others are. You're also have to explain why it needs to be in the standard
library rather than installed by 'pip install someparser'.

On Sat, Mar 30, 2019, 1:58 PM Nam Nguyen <bitsink at gmail.com> wrote:

> Hello list,
> What do you think of a universal parsing library in the stdlib mainly for
> use by other libraries in the stdlib?
> Through out the years we have had many issues with protocol parsing. Some
> have even introduced security bugs. The main cause of these issues is the
> use of simple regular expressions.
> Having a universal parsing library in the stdlib would help cut down these
> issues. Such a library should be minimal yet encompassing, and whole parse
> trees should be entirely expressible in code. I am thinking of combinatoric
> parsing as the main candidate that fits this bill.
> What do you say?
> Thanks!
> Nam
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190331/4fca11f6/attachment.html>

More information about the Python-ideas mailing list