[Python-Dev] Parser module in the stdlib
njs at pobox.com
Thu May 16 18:41:26 EDT 2019
On Thu, May 16, 2019 at 2:13 PM Pablo Galindo Salgado
<pablogsal at gmail.com> wrote:
> I propose to remove finally the parser module as it has been "deprecated" for a long time, is almost clear that nobody uses it and has very limited usability and replace it (maybe with a different name)
> with pgen2 (maybe with a more generic interface that is detached to lib2to3 particularities). This will not only help a lot current libraries that are using forks or similar solutions but also will help to keep
> synchronized the shipped grammar (that is able to parse Python2 and Python3 code) with the current Python one (as now will be more justified to keep them in sync).
Will the folks using forks be happy to switch to the stdlib version?
For example I can imagine that if black wants to process 3.7 input
code while running on 3.6, it might prefer a parser on PyPI even if
the stdlib version were public, since the PyPI version can be updated
independently of the host Python.
Nathaniel J. Smith -- https://vorpus.org
More information about the Python-Dev